masstools
vignettes/install.Rmd
install.RmdYou 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
enterkey 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
enterkey 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_PATshould 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.4.3 (2025-02-28 ucrt)
#> Platform: x86_64-w64-mingw32/x64
#> Running under: Windows 11 x64 (build 26100)
#>
#> Matrix products: default
#>
#>
#> locale:
#> [1] LC_COLLATE=Chinese (Simplified)_China.utf8
#> [2] LC_CTYPE=Chinese (Simplified)_China.utf8
#> [3] LC_MONETARY=Chinese (Simplified)_China.utf8
#> [4] LC_NUMERIC=C
#> [5] LC_TIME=Chinese (Simplified)_China.utf8
#>
#> time zone: Asia/Shanghai
#> tzcode source: internal
#>
#> attached base packages:
#> [1] stats graphics grDevices utils datasets methods base
#>
#> loaded via a namespace (and not attached):
#> [1] digest_0.6.37 desc_1.4.3 R6_2.6.1 fastmap_1.2.0
#> [5] xfun_0.52 cachem_1.1.0 knitr_1.50 htmltools_0.5.8.1
#> [9] rmarkdown_2.29 lifecycle_1.0.4 cli_3.6.5 sass_0.4.10
#> [13] pkgdown_2.1.3 jquerylib_0.1.4 compiler_4.4.3 rstudioapi_0.17.1
#> [17] tools_4.4.3 bslib_0.9.0 evaluate_1.0.4 yaml_2.3.10
#> [21] jsonlite_2.0.0 rlang_1.1.6 fs_1.6.6 htmlwidgets_1.6.4