Differences between revisions 2 and 3
Revision 2 as of 2023-06-15 13:58:46
Size: 885
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 60: 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)