mason-org / mason-org/r-languageserver
Fails to install if repo is not named "CRAN"
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 10
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
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
https://github.com/mason-org/r-languageserver/blob/16ec4a6a2335e26b566d0a339628b5565439ceda/src/install.r#L10
Cheers,
Xavi.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at src/install.r line 10 and inspect how the CRAN repository is selected from the repos option. Reproduce installation with a repository whose label is not "CRAN"; done means the server installer accepts available CRAN repositories without requiring a manually renamed option.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100