Displaying 1 result from an estimated 1 matches for "tstfile".
Did you mean:
testfile
2019 Jul 05
0
parse() drops parse data when encountering `` (bug?)
...ce. The print
output also looks more limited than a regular parser error which leads me
to suspect this is a bug. If this is the case could someone with the
authority please add it to R's bug tracker?
My reprex follows.
Thanks,
Miles
``` r
target_text <- "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 =...