Skip to content
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

Fails to install if repo is not named "CRAN" #6

Open
xguardi opened this issue Jun 27, 2024 · 0 comments
Open

Fails to install if repo is not named "CRAN" #6

xguardi opened this issue Jun 27, 2024 · 0 comments

Comments

@xguardi
Copy link

xguardi commented Jun 27, 2024

Installation failed bc:

current_cran <- getOption("repos")["CRAN"]
returned NA

I had to manually add to my .RProfile a repo labelled CRAN:

`options(repos = c("CRAN" = "http://cran.r-project.org"))

as in my case it was labelled differently: 'RStudio'. In any case, cran repos can have other names as well, or you might be using also a corporate one.
`
This is the code that generated the error when Mason tried to install the server

if (current_cran == "@CRAN@")

Cheers,

Xavi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant