masstools
vignettes/install.Rmd
install.Rmd
You can just use the or remotes
to install
masstools
.
remotes::install_gitlab("tidymass/masstools", dependencies = TRUE)
During the installation, it will ask if you want to update some packages for few times, just enter
enter
key to skip it.
You can just use the or remotes
to install
masstools
.
remotes::install_github("tidymass/masstools", dependencies = TRUE)
During the installation, it will ask if you want to update some packages for few times, just enter
enter
key to skip it.
If there is a error like below:
Error: Failed to install 'masstools' from GitHub: HTTP error 403. API rate limit exceeded for 171.66.10.237. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
Try to resolve it by:
usethis::create_github_token()
It will open a page in browser, and create a “New personal access token” and copy it.
usethis::edit_r_environ()
and then add one line like below:
GITHUB_PAT=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
The
GITHUB_PAT
should be yours that is created in step 1.
And then restart R session and try again.
raster
and
Cario
raster
is a package in CRAN,
try to install it first and then install masstools
.
install.packages("raster")
Cario
is a package in CRAN,
try to install it first and then install masstools
.
install.packages("Cairo")
sessionInfo()
#> R version 4.1.2 (2021-11-01)
#> Platform: x86_64-apple-darwin17.0 (64-bit)
#> Running under: macOS Big Sur 10.16
#>
#> Matrix products: default
#> BLAS: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRblas.0.dylib
#> LAPACK: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib
#>
#> locale:
#> [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
#>
#> attached base packages:
#> [1] stats graphics grDevices utils datasets methods base
#>
#> other attached packages:
#> [1] leaflet_2.1.0
#>
#> loaded via a namespace (and not attached):
#> [1] rstudioapi_0.13 knitr_1.37 magrittr_2.0.2 R6_2.5.1
#> [5] rlang_1.0.1 fastmap_1.1.0 stringr_1.4.0 tools_4.1.2
#> [9] xfun_0.29 cli_3.2.0 jquerylib_0.1.4 htmltools_0.5.2
#> [13] crosstalk_1.2.0 yaml_2.3.4 digest_0.6.29 rprojroot_2.0.2
#> [17] pkgdown_2.0.2 crayon_1.5.0 purrr_0.3.4 sass_0.4.0
#> [21] htmlwidgets_1.5.4 fs_1.5.2 memoise_2.0.1 cachem_1.0.6
#> [25] evaluate_0.15 rmarkdown_2.11 stringi_1.7.6 compiler_4.1.2
#> [29] bslib_0.3.1 desc_1.4.0 jsonlite_1.7.3