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
Teach renv about RSPM binaries #124
Comments
|
Should |
|
Users would typically opt-in by setting the repo url, do you have other ideas for how this could work though? e.g. I guess renv could try to see if a repository supports the linux structure and point the user in that direction? IDK if renv would be able to figure out reliably what OS it is running on and which repo URL to select automatically |
Right, but because only the unadorned repository URL will enter the lockfile (ie: stripped of Is there a simple way to query an CRAN repository to ask if it's RSPM + binaries are available for a particular platform? |
|
@jonyoder do you know if this this type of info is easily available? Maybe related to https://github.com/rstudio/package-manager/issues/1245 |
|
We have some of this info in the status API:
{
"version": "1.0.11-1235",
"metrics_enabled": true,
"r_configured": true,
"binaries_enabled": true,
"binary_distros": [
{
"url": "centos6",
"display": "CentOS/RHEL 6"
},
{
"url": "centos7",
"display": "CentOS/RHEL 7"
},
{
"url": "opensuse42",
"display": "OpenSUSE 42.3, SLES 12.3"
},
{
"url": "opensuse15",
"display": "OpenSUSE/SLES 15"
},
{
"url": "xenial",
"display": "Ubuntu 16.04 (Xenial)"
},
{
"url": "bionic",
"display": "Ubuntu 18.04 (Bionic)"
}
]
}If renv only cares about the default distros that we distribute with RSPM, then you could pretty easily call this API and match up the For now, I expect the |
|
@kevinushey, I should have mentioned that the above six distros (identified by the |
|
I think I'm being bit by this now. Using RSPM to install packages and when I go to restore the project in a Docker image, R is installing from source rather than the binaries, so now I'm waiting for packages to compile. I got around it by setting the |
|
This should be implemented now in the latest version of
Let me know if you run into any problems or don't see this behavior. |
|
I'll give it a shot. But now, a related use case. I'm developing using using my RSPM. Then I migrate the code to the customer's system and want to use their RSPM. Do I manually edit the lockfile? |
|
Sorry for the late response. Depending on how you want to set the repositories, you could do so either by:
|
RSPM repositories can provide users linux package binaries if users set the repo option correctly.
For examples, see: http://cluster.rstudiopm.com/client/#/repos/1/overview
Packrat should remove the linux component of the URL to ensure the projects remain portable across distros.
The text was updated successfully, but these errors were encountered: