r-lib / remotes

Install R packages from GitHub, GitLab, Bitbucket, git, svn repositories, URLs
https://remotes.r-lib.org/
Other
331 stars 152 forks source link

package building: install rstan from third party url from DESCRIPTION remotes #615

Closed stemangiola closed 2 years ago

stemangiola commented 3 years ago

In the case of rstan, the community has created an independent repository. This because CRAN had been challenging to develop for (for them).

https://mc-stan.org/r-packages/

For example

install.packages("rstan", repos = c("https://mc-stan.org/r-packages/", getOption("repos")))

Can I use remotes to link to https://mc-stan.org/r-packages/ from the DESCRIPTION of my package?

jimhester commented 3 years ago

You should be able to add that URL to the Additional_repositories: and it should pick it up.