Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFeature/updated cpptoml #10
Conversation
|
just wanted to pass along, tried it out, works beautifully! For those that come along and would like an example, example_string <- "
[[test]]
var1 = 'hello'
var2 = 2
var3 = '''
some
multiline string
'''
[test2]
date = 1970-01-01
"
RcppTOML::parseTOML(example_string, fromFile = F)which gives @eddelbuettel any reason why the print method gives a trailing Even when saving to an object, when querying the object, it always has that trailing NULL
Just in case:
|
|
We use |
|
This seems to work better: print.toml <- function(x, ...) { cat(utils::str(x, give.attr=FALSE)); invisible(x) }Now: R> z
List of 2
$ test :List of 3
..$ var1: chr "hello"
..$ var2: int 2
..$ var3: chr "some\\nmultiline string\\n"
$ test2:List of 1
..$ date: Date[1:1], format: "1970-01-01"
R> print(z)
List of 2
$ test :List of 3
..$ var1: chr "hello"
..$ var2: int 2
..$ var3: chr "some\\nmultiline string\\n"
$ test2:List of 1
..$ date: Date[1:1], format: "1970-01-01"
R> I'll make the change. |

No description provided.