Closed helske closed 3 years ago
Sorry for delayed response while I was on vacation. I can't reproduce that on a Linux environment, but will try a windows environment this coming week, and report back then.
@helske Thanks for reporting this. It arose because pkgstats
uses separate tagging libraries, one of which (ctags
) constructs file paths with "winslash" separation ("\\"
), and not with .Platform$file.sep
("/"
). The above commits should fix for any version >= 0.0.0.297
Re-opening because there seem to be a few additional issues. @helske Note that I'm also going to transfer the issue over to the pkgstats
repo where the problem arises.
I'm trying to test my package with
pkgcheck
, but I get an error related to the file paths on Windows:results in
Error in file(filename, "r") : cannot open the connection
. Withtraceback()
I seeAnd debugging
fn_var_call_graph_r
shows that thepath
argument is"C:\\Users\\jovetale\\AppData\\Local\\Temp\\RtmpAnZYNz/test"
which is appended to for example with"C:/Users/jovetale/AppData/Local/Temp/RtmpAnZYNz/kLLHePAK/R/zzz.R"
when buildingf_full
, leading to a nonexistent path such as"C:\\Users\\jovetale\\AppData\\Local\\Temp\\RtmpAnZYNz\\test\\C:\\Users\\jovetale\\AppData\\Local\\Temp\\RtmpAnZYNz\\kLLHePAK\\R\\zzz.R"
which cannot be parsed.