Differences between revisions 1 and 2
Revision 1 as of 2023-03-19 21:25:18
Size: 827
Comment:
Revision 2 as of 2023-06-15 13:58:46
Size: 885
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:

R packages are installed by the R interpretter itself.

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()

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