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
@krlmlr sorry for my late reply, I tried again with RStudio RStudio 2024.04.1+748 " and R version 4.3.2 and it seems that the here::i_am() function now works in RStudio with the same behavior as in Visual Studio.
From RStudio, I get the same output as from Visual Studio:
I faced this issue while playing around with
here::i_am()
and found #73 (comment) which is very related but does point the exact same problem.Problem:
here::i_am()
returns default RStudio working directory (even when set to~
in global options).With here 1.0.1, RStudio 2024.04.0+735 and R version 4.3.2.
Example:
Structure of the folder:
And the content of
test_script.R
is:Console output when
test_script.R
is executed from RStudio:It shows a similar error if I try
However, if I run the script from Visual Studio, I get the expected output:
This suggests an incompatibility of
here::i_am()
with RStudio.The text was updated successfully, but these errors were encountered: