Displaying 1 result from an estimated 1 matches for "target_text2".
Did you mean:
target_text
2019 Jul 05
0
parse() drops parse data when encountering `` (bug?)
..."foo = 1 `` {r} foo = 2"
tstfile = srcfile(tempfile())
parse(text = target_text,
keep.source = TRUE,
srcfile = tstfile)
#> Error in parse(text = target_text, keep.source = TRUE, srcfile =
tstfile): attempt to use zero-length variable name
getParseData(tstfile)
#> NULL
target_text2 <- "foo = 1 {r} foo = 2"
tstfile = srcfile(tempfile())
parse(text = target_text2,
keep.source = TRUE,
srcfile = tstfile)
#> Error in parse(text = target_text2, keep.source = TRUE, srcfile =
tstfile): /tmp/RtmpXuGaL1/file5434ebd1f95:1:9: unexpected '{'
#> 1: fo...