Can't reprex code that deals in srcrefs #152
Comments
What's your selected source and output? It's working for me rendering SO-styled output to clipboard from selection, and active file.
Created on 2018-01-05 by the reprex package (v0.1.1.9000). |
It doesn't have anything to do with the venue or the addin. It's something to do with the code itself, probably tf <- tempfile()
cat('do.call(knitr::kable,args=args)',file = tf)
head(readLines(tf))
#> Warning in readLines(tf): incomplete final line found on '/var/folders/vr/
#> gzrbtprx6ybg85y5pvwm1ct40000gn/T//RtmptlczMl/file15162203344aa'
#> [1] "do.call(knitr::kable,args=args)"
parsed <- utils::getParseData(parse(tf))
print(parsed)
#> NULL Created on 2018-01-05 by the reprex package (v0.1.1.9000). I have found it tricky to work with srcrefs inside testthat and I suspect this is some variant of that phenomenon. |
If you save that code in a plain |
ok. thanks. seems to be hinting that the vanilla run is not handling the tempfile properly |
tf <- tempfile()
cat('do.call(knitr::kable,args=args)',file = tf)
utils::getParseData(parse(tf))
#> NULL |
using
reprex::reprex_addin
withSO
outputThe text was updated successfully, but these errors were encountered: