-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is RStudio required for here::i_am()
?
#73
Comments
I had the same issue. Without the project file within R-Studio, here gives a message like above. This seems to be due to the "default directory" that is (automatically) set in the preferences. |
Any resolution to this? I'm dying with this issue and have been at it all day - I can't find anything in the rproj.user files or anything |
When I ran into this issue just now, it took me a while to realize it was a typical stupid error: I had written |
Same issue with here 1.0.1, RStudio 2024.04.0+735 and R version 4.3.2. Structure of the folder:
And the content of here::i_am(path = "test_script.R") Console output when > here::i_am(path = "test_script.R")
Erreur : Could not find associated project in working directory or any parent directory.
- Path in project: test_script.R
- Current working directory: C:/Users/Username/Documents
Please open the project associated with this file and try again. It shows a similar error if I try here::i_am(path = ".here") However, if I run the script from Visual Studio, I get the expected output: > here::i_am(path = ".here") # also works with "test_script.R" instead of ".here"
here() starts at C:/Users/[path]/test This suggest an incompatibility of |
Thanks, @KleinWurm. Finally picking up this thread. When you try in RStudio, what does |
@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 From RStudio, I get the same output as from Visual Studio: > here::i_am(path = "test_script.R")
here() starts at C:/Users/[path]/test And |
The below is what I get when I run the command.
here::here()
seems to work without the .Rproj file though.The text was updated successfully, but these errors were encountered: