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 am using the here package for my project, and I set a .here file in the root directory (for example, X:/root) where contains the folder of my code (for example, X:/root/code). However, every time I open my script and load the here package, it shows that it starts at where the code sits (i.e. X:/root/code).
One thing I can think of is that I loaded the package before I created the here file. I think that may be the cause. I then unload the package, reset the working directory to my root directory, and reload the package. It worked fine when I run my code by chunk in R markdown, but I wasn't able to knit the markdown because the package thinks the code folder is the root all the time. Is there a way to fix it?
The text was updated successfully, but these errors were encountered:
Thanks for your suggestion. I think I found the solution after looking at the vignette for R markdown. And just one more side question, is here file still in use in this package?
I am using the here package for my project, and I set a .here file in the root directory (for example, X:/root) where contains the folder of my code (for example, X:/root/code). However, every time I open my script and load the here package, it shows that it starts at where the code sits (i.e. X:/root/code).
One thing I can think of is that I loaded the package before I created the here file. I think that may be the cause. I then unload the package, reset the working directory to my root directory, and reload the package. It worked fine when I run my code by chunk in R markdown, but I wasn't able to knit the markdown because the package thinks the code folder is the root all the time. Is there a way to fix it?
The text was updated successfully, but these errors were encountered: