Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2023-03-19 21:25:18
Size: 827
Comment:
Revision 3 as of 2023-06-22 20:54:36
Size: 916
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:

R packages are installed by the R interpretter itself.
Line 58: Line 60:



----
CategoryRicottone

Installing R Packages

R packages are installed by the R interpretter itself.


Example

# To install, try...
install.packages("tidyverse")

# If download and compilation succeeded, try loading the package.
library(tidyverse)


Install from Source Code

install.packages("path/to/tidyverse_2.0.0.tar.gz", repos=NULL)


Install from GitHub

Multiple packages exist for installing packages directly from !GitHub.

Once the devtools package has been downloaded, try using the install_github function.

devtools::install_github("tidyverse/ggplot2")

Alternatively, once the pak package has been downloaded, try using the pak function.

pak::pak("tidyverse/ggplot2")


Updating Packages

update.packages()


CategoryRicottone

R/InstallingPackages (last edited 2023-11-28 04:45:35 by DominicRicottone)