Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions r/factset.protobuf.stach.v2/DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
Package: factset.protobuf.stach.v2
Type: Package
Version: 1.0.6
Title: 'FactSet' 'STACH V2' Library
Version: 1.0.3
Author: analytics-reporting
Maintainer: Charlie Mathis<[email protected]>
Authors@R: c(person("Charlie Mathis", "Developer", role = c("aut", "cre"),
email = "[email protected]"))
Author: Charlie Mathis Developer [aut, cre]
Maintainer: Charlie Mathis Developer <[email protected]>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that we can remove these two lines as the same information is being conveyed in line 5. Can you please confirm it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

Description: Generates 'RProtobuf' classes for 'FactSet' 'STACH V2' tabular
format which represents complex multi-dimensional array of data. These
classes help in the 'serialization' and 'deserialization' of 'STACH V2'
Expand All @@ -14,8 +16,10 @@ BugReports: https://github.com/factset/stachschema-sdks/issues
License: Apache License 2.0
Encoding: UTF-8
LazyData: true
Imports: R6
Depends: RProtoBuf
Imports:
R6
Depends:
RProtoBuf
Suggests: testthat
SystemRequirements: ProtoBuf libraries and compiler version 3.3.0 or later;
On Debian/Ubuntu these can be installed as libprotoc-dev, libprotobuf-dev
Expand Down
Binary file not shown.
Binary file not shown.
12 changes: 11 additions & 1 deletion r/factset.protobuf.stach.v2/man/factset.protobuf.stach.v2.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The purpose of this library is to help in the serialization and de-serialization
\describe{
\item{\code{package}}{Stach Data which is represented as a Package object}
\item{\code{input}}{Input file which is in binary format}
}
}\if{html}{\out{</div>}}
}

\examples{
Expand All @@ -28,6 +28,16 @@ read( factset.protobuf.stach.v2.RowOrganizedPackage, input = 'path of your stach

# an example to Read the raw stach data as a character
read( factset.protobuf.stach.v2.Package, input = as.character(stachdata) )
}
\testonly{
# an example to Read column organized file data from a connection
binaryFilePath <-
system.file('testdata/V2ColumnStachData', package = 'factset.protobuf.stach.v2')
package <- read( factset.protobuf.stach.v2.Package, input = binaryFilePath )

# an example to Read row organized file data from a connection
binaryFilePath <-
system.file('testdata/V2RowStachData', package = 'factset.protobuf.stach.v2')
package <- read( factset.protobuf.stach.v2.RowOrganizedPackage, input = binaryFilePath )
}
}