When you want to install an R package on GitHub, but you can’t access GitHub, this function helps you download and install the package on GitHub via the proxy website https://mirror.ghproxy.com/ or https://gh-proxy.com/, which is in real-time sync with GitHub.
# Install development version from GitLab
remotes::install_gitlab("chuxinyuan/ipkg")
# Install from CRAN
install.packages("ipkg")
Install the development version of the R package on GitHub. Take the ‘xfun’ package as an example.
Download file from GitHub via the proxy website. for example:
download_file(
url = "https://github.com/hadley/mastering-shiny/raw/main/neiss/products.tsv",
destfile = "products.tsv",
quiet = TRUE
)
ecce is free and open source software, licensed under MIT + file LICENSE.