Integrate Posit Connect with Posit Cloud
Posit Cloud is a product geared towards bringing data science to everyone. A core feature of Posit Cloud is the ability to create projects as-needed with the ability to publish content to Posit Connect. For more information, see the Posit Cloud Documentation.
If your users are using Posit Cloud to publish content to Posit Connect, there are some caveats that you should be aware of:
- Posit Cloud uses a package proxy replacement for CRAN, which shows up in the
packrat.lock
andmanifest.json
files ashttp://package-proxy
- Posit Cloud supports a fallback repository for its packages which is listed as
RSPM
in therepos
R option and points to a CRAN mirror. - When deployments from Posit Cloud rebuild on Connect, users may see a message saying that it couldn’t contact
http://package-proxy
before successfully building.
Rewriting package-proxy
repository definitions
To prevent the package-proxy
message from appearing in user deployments, override CRAN using the RPackageRepository
configuration heading.
[RPackageRepository "CRAN"]
URL = https://cran.rstudio.com
For more information, see the r-package-repositories
section.
Making all Posit Cloud deployments restore from Posit Package Manager
Because Posit Cloud uses two repository settings to achieve its fallback behavior, you need to override both of them using the RPackageRepository
configuration heading.
[RPackageRepository "CRAN"]
URL = https://my.package.manager.instance
[RPackageRepository "RSPM"]
URL = https://my.package.manager.instance
Replace https://my.package.manager.instance
with the instance of Posit Package Manager you prefer that packages restore from.