You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is a Windows specific issue due to the recent switch to fs in #2331 mainly due to the fact the fs HOME dir on Windows is not the same as the R HOME dir. This means that every unexpanded path started with ~/ will not mean the same for R base function or for fs.
Here is what happens:
devtools:::test_active_file() => devtools:::find_active_file(): This results in a path starting with ~/. e.g "~/DEV_R/rmarkdown/tests/testthat/test-render.R"
Then devtools:::find_test_file() is run on this file and this will error there
I think the change to fs should take into account this HOME directory difference. It must have for the package internal function that are tested as the tests have passed on Windows. So it may be only an issue for this addin function.
As a workaround, I am changing R_FS_HOME for now so that the addin works
The text was updated successfully, but these errors were encountered:
Here is the issue :
Running the addin "Run a test file" will run
devtools:::test_active_file()
in R Console in the RStudio IDE. But this errorI think this is a Windows specific issue due to the recent switch to fs in #2331 mainly due to the fact the fs HOME dir on Windows is not the same as the R HOME dir. This means that every unexpanded path started with
~/
will not mean the same for R base function or for fs.Here is what happens:
devtools:::test_active_file()
=>devtools:::find_active_file()
: This results in a path starting with~/
. e.g"~/DEV_R/rmarkdown/tests/testthat/test-render.R"
devtools:::find_test_file()
is run on this file and this will error theredevtools/R/active.R
Lines 8 to 25 in f5dc632
fs::file_exists()
is not the same asfile.exists()
on Windows. (source of change)Created on 2021-05-28 by the reprex package (v2.0.0)
I think the change to fs should take into account this HOME directory difference. It must have for the package internal function that are tested as the tests have passed on Windows. So it may be only an issue for this addin function.
As a workaround, I am changing
R_FS_HOME
for now so that the addin worksThe text was updated successfully, but these errors were encountered: