Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding data_info parameter and stop messages #1

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

mmc00
Copy link

@mmc00 mmc00 commented Jan 8, 2021

Adding a parameter data_info where to write the coefficient and the description of real type data, and the description of the types of characters and integers. Also adding stop messages when the length of the header, coefficient and description is greater than required.

Example:

data = list(
REAL = array(
c(1, 2, 3, 4, 5, 6),
dim = c(2, 3),
dimnames = list(
dim1name = c('a', 'b'),
dim2name = c('f', 'g', 'h')
)
),
INTG = array(c(1L, 2L, 3L, 4L, 5L, 6L),
dim = c(2, 3)),
STRG =
c("STRING1", "STRING2", "STRING3")

)
data_extra = list(
REAL = c("REALD", "Real data type proof")
)
write_har(data, data_info = data_extra, 'test.har')

mmc00 added 6 commits January 7, 2021 23:45
Adding extra info for Coefficient and Description, and stop messages
Change because in a header with at least of two character, it returned a Har file with a Header with only one space. Example, header with the name: "re", in the header will appear as "re_", instead of "re__"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant