I'm having an issue running some packages (including rmarkdown
) in R. The problem is because I'm using Windows 10 and my HOME
directory path includes spaces:
C:/Users/My Name/Documents
From doing a bit of research I realise that I need to change my HOME
directory to something that doesn't have spaces; this is explained in this post, but not specifically how one should go about doing it.
I have two questions about this problem:
How do I change the
HOME
directory to a path with no spaces?Will this cause issues when running other scripts, and if so is there a particular location on my
C:
drive that would be best to relocateHOME
to?
An answer to this post suggests I should use Sys.setenv(R_USER="/my/desired/path")
: would this force R to use a different HOME
path? And if so, would I need to run this before running every script?
Edit: someone suggested looking at this post, but this doesn't quite get me where I want to be because I want to change the directory; so, re-setting the environment variable (by adding the .Renviron
file to HOME
) surely wouldn't work?
Many thanks!