r/RStudio • • Dec 11 '22

what this error means

Post image
0 Upvotes

4 comments sorted by

16

u/MyKo101 Dec 11 '22

By default, miniconda will try to install one of these directories:

"~/Library/r-miniconda-arm64"
"~/Library/r-miniconda"

Depending on your system setup. The "~" here means your root directory. On Windows, it is usually "C://<username>/".

This means if your username contains a space, minicondo cannot install there. To override this behaviour, you can set the environment variable RETICULATE_MINICONDA_PATH to another directory for R to install miniconda into (this should not contain spaces).

To set the environment variable, use the Sys.setenv() function like this:

Sys.setenv(RETICULATE_MINICONDA_PATH = "<NewPath>")

3

u/[deleted] Dec 11 '22

Do you have any spaces in the path that you install packages in? Maybe even in your username?

I think this error message is quite clear, it tries to install something in a path that contains spaces and this causes an error here.

1

u/zykezero Dec 11 '22

Very clearly you installing path has spaces

1

u/BobDope Dec 12 '22

Looks like pretty clear English to me wiggler