Error in contrib.url(repos, "source"): trying to use CRAN without setting a mirror
2024-11-20
A container for:
{tidyverse}
is a metapackage—or a package that loads a set of other packages.
Use install.packages()
to install a package from CRAN (Comprehensive R Archive Network):
Error in contrib.url(repos, "source"): trying to use CRAN without setting a mirror
But, remember, this does not work:
Use library()
to load a package into your environment:
Why can we use both library(sf)
and library("sf")
?
The package
argument can be the name of a package: as a name, literal character string, or a character string.
The {base}
package for R is one of fifteen “base packages” that are always available. Functions like sum()
, max()
, and paste0()
are all examples of “base functions”.
Functions take inputs (known as arguments or parameters) and return outputs.
A container for:
Some functions require a specific type of input:
But some functions are more flexible:
Order of execution matters!