R/localCran.R
setOptionsForPackrat.Rd
Add the path to the local repository to the option "repos" and set the option "pkgType" to "source".
setOptionsForPackrat()
The old options are returned invisibly.