When running R from the terminal, we sometimes see
--- Please select a CRAN mirror for use in this session ---
Is there a universal, efficient, and memorable way to install.packages("example") without needing to memorise urls or interact with a dialogue box?
That is, is there a way to install an R package which is:
- universal (works on any/all installations of R, irrespective of operating system)
- Requires no memorisation of url(s)
- Requires no interaction with duologue box(es)
- Requires no files (e.g.
.Rprofile) to be created or edited
Lastly, ideally, a method which is short and memorable (or easy use without having to look it up).
Here's a pseudo code example of an ideal solution (where 'force' is pseudocode for 'choose the most obvious defaults and press on at all costs!)
force(install.packages("example"))