Size: 827
Comment:
|
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.
Contents
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()