metrumresearchgroup / review

helpful tools for organizing and performing quality control (QC) tasks
https://metrumresearchgroup.github.io/review/
2 stars 0 forks source link

diff QCed breaks with here::here #18

Closed andersone1 closed 1 year ago

andersone1 commented 1 year ago

The example below breaks when using here::here inside a diffQced (it may point to an issue with another function, but it exposes itself in review::diffQced).

> here::here("script/pk/ppk-eda-figures.R")
[1] "/data/svn-mc1/svn-proj-DSI-DSI1701/script/pk/ppk-eda-figures.R"
> file.exists(here::here("script/pk/ppk-eda-figures.R"))
[1] TRUE

Does not work

> review::diffQced(here::here("script/pk/ppk-eda-figures.R"))
Error in logTarget(.file) :
1 nonexistent file(s), e.g. /data/svn-mc1/svn-proj-DSI-DSI1701//data/svn-mc1/svn-proj-DSI-DSI1701/script/pk/ppk-eda-figures.R

Does work

> review::diffQced("script/pk/ppk-eda-figures.R") 
A    /tmp/RtmpZdEV1a/file3fa5ebed0d2.R 
Export complete.
Press ENTER to continue...