Configure CRAN
Send install.packages through Depsilo's /cran/ route with options(repos).
BEFORE
https://cloud.r-project.orgAFTER
http://localhost:23333/cran/R selects a CRAN mirror with options(repos). Put it in .Rprofile so interactive sessions and scripts both pick it up.
Configure the client
Section titled “Configure the client”options(repos = c(CRAN = "http://localhost:23333/cran/"))For a one-off check, set it inside a session instead:
options(repos = c(CRAN = "http://localhost:23333/cran/"))install.packages("jsonlite")Verify requests
Section titled “Verify requests”-
Check that the instance is ready
终端窗口 curl -fsS http://localhost:23333/ready -
Install a package
install.packages("jsonlite") -
Confirm the traffic in Admin
Check the
/cran/requests and cache results in Access logs.