remotes
Install R packages from GitHub, GitLab, Bitbucket, git, svn repositories, URLs
Science Score: 23.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
7 of 76 committers (9.2%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (18.7%) to scientific vocabulary
Keywords
r
Keywords from Contributors
tidy-data
setup
package-creation
unit-testing
documentation-tool
visualisation
devtools
csv
rmarkdown
grammar
Last synced: 10 months ago
·
JSON representation
Repository
Install R packages from GitHub, GitLab, Bitbucket, git, svn repositories, URLs
Basic Info
- Host: GitHub
- Owner: r-lib
- License: other
- Language: R
- Default Branch: main
- Homepage: https://remotes.r-lib.org/
- Size: 9.74 MB
Statistics
- Stars: 351
- Watchers: 14
- Forks: 153
- Open Issues: 131
- Releases: 13
Topics
r
Created over 10 years ago
· Last pushed over 1 year ago
Metadata Files
Readme
Changelog
License
Code of conduct
README.Rmd
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# remotes
> Install R Packages from remote or local repositories,
> including GitHub, GitLab, Bitbucket, and Bioconductor
[](https://github.com/r-lib/remotes/actions/workflows/R-CMD-check.yaml)
[](https://app.codecov.io/gh/r-lib/remotes?branch=main)
[](https://www.r-pkg.org/pkg/remotes)
[](https://www.r-pkg.org/pkg/remotes)
[](https://lifecycle.r-lib.org/articles/stages.html)
Download and install R packages stored in GitHub, GitLab, Bitbucket,
Bioconductor, or plain subversion or git repositories. This package
is a lightweight replacement of the `install_*` functions in
[`devtools`](https://github.com/r-lib/devtools).
Indeed most of the code was copied over from `devtools`.
## Features
* Installers:
* Install packages with their dependencies.
* Install from GitHub, GitLab, Bitbucket.
* Install from git and subversion repositories.
* Install from local files or URLs.
* Install the dependencies of a local package tree.
* Install specific package versions from CRAN.
* Supports [Bioconductor](https://bioconductor.org/) packages.
* Supports the `Remotes` field in `DESCRIPTION`. See more in the
[dependencies](https://remotes.r-lib.org/articles/dependencies.html) vignette.
* Supports the `Additional_repositories` field in `DESCRIPTION`.
* Can install itself from GitHub (see below).
* Does not depend on other R packages.
* Does not contain compiled code, so no compiler is needed.
* Does not need any external software (for most of the functionality
at least).
## Installation
Install the released version of remotes from CRAN:
```r
install.packages("remotes")
```
## Usage
Note that most of the examples here use GitHub. See below for other
supported repository types.
To install the latest version of a package in the default branch from
GitHub, you can use the `user/repo` form. Note that `user` can also be
an organization:
```r
remotes::install_github("r-lib/conflicted")
```
If the R package is inside a subdirectory of the root directory,
then give this subdirectory as well:
```r
# build = FALSE because of some specificities of XGBoost package
install_github("dmlc/xgboost/R-package", build = FALSE)
```
To install a certain branch or commit or tag, append it to the
repo name, after an `@`:
```r
remotes::install_github("gaborcsardi/pkgconfig@v2.0.0")
```
To install the latest release, append `@*release` to the repo
name:
```r
remotes::install_github("gaborcsardi/pkgconfig@*release")
```
To install a pull request, append `#` and the id (an integer number)
of the pull request to the repo name:
```r
remotes::install_github("r-lib/pkgconfig#7")
```
### Dependencies
Dependencies are automatically installed from CRAN. By default,
outdated dependencies are automatically upgraded. In interactive sessions
you can select a subset of the dependencies to upgrade.
#### Dependencies on GitHub
It is also possible to install dependencies from GitHub or other
supported repositories. For this you need to add a `Remotes` field to the
`DESCRIPTION` file. Its format is:
```
Remotes: [remote::]repo_spec, [remote::]repo_spec, ...
```
where `repo_spec` is any repository specification the corresponding
`install_()` function can handle. If `remote::` is missing, `github::` is
assumed. Other possible values: `gitlab::`,`bitbucket::`, `git::`, `local::`,
`svn::`, `url::`, `version::`, `cran::`, `bioc::`.
See more about the `Remotes` field in this
[vignette](https://remotes.r-lib.org/articles/dependencies.html).
#### Additional repositories
remotes supports the `Additional_repositories` field in
`DESCRIPTION`. This is a way to specify dependencies from non-CRAN
package repositories. See the [Writing R extensions](https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Package-Dependencies)
manual for details.
#### Bioconductor packages
Bioconductor packages are automatically detected and their
dependencies are installed from Bioconductor.
#### Currently supported remote types
* GitHub repositories via `install_github`.
* Bitbucket repositories via `install_bitbucket`.
* Generic git repositories via `install_git`. They need either a
system git installation, or the
[git2r](https://github.com/ropensci/git2r) R package.
* Local directories or package archive files via `install_local`.
* Remote package archive files via `install_url`.
* Packages in subversion repositories via `install_svn`. They need
a system subversion installation.
* Specific package versions from CRAN or other CRAN-like
repositories via `install_version`. This includes outdated
and archived packages as well.
* All dependencies of a package in a local directory via
`install_deps`.
### Download methods
* For R older than 3.2, the curl package is required as remotes falls back
to `curl::curl_download` in that case
* For R newer than 3.3, default `download.file()` method is used.
(`method = "auto"`)
* For in between versions,
* `method = "wininet"` is used on windows OS
* `method = "libcurl"` is used on other OS, if available.
See `help("download.file")` for information on these methods and for
setting proxies if needed.
### Standalone mode
remotes will use the curl, git2r and pkgbuild packages if they are
installed to provide faster implementations for some aspects of the install
process. However if you are using remotes to install or update these packages
(or their reverse dependencies) using them during installation may fail
(particularly on Windows).
If you set the environment variable `R_REMOTES_STANDALONE="true"` (e.g.
in R `Sys.setenv(R_REMOTES_STANDALONE="true")`) you can force remotes to
operate in standalone mode and use only its internal R implementations. This
will allow successful installation of these packages.
### Options
remotes uses the following standard R options, see `?options` for their
details:
* `download.file.method` for the default download method. See
`?download.file`.
* `pkgType` for the package type (source or binary, see manual) to install,
download or look up dependencies for.
* `repos` for the locations of the user's standard CRAN(-like) repositories.
It also uses some remotes specific options:
* `BioC_git` for the URL of the default Bioconductor git mirror.
* `BioC_mirror` for the URL of the Bioconductor mirror.
* `unzip` for the path of the external `unzip` program.
### Environment variables
* The `BITBUCKET_USER` and `BITBUCKET_PASSWORD` environment variables
are used for the default Bitbucket user name and password, in
`install_bitbucket()`
* The `GITHUB_PAT` environment variable is used as the default GitHub
personal access token for all GitHub API queries.
* The `R_BIOC_MIRROR` environment variable can be used to specify an
alternative Bioconductor mirror. (The `BioC_mirror` option takes
precedence over this.)
* The `R_BIOC_VERSION` environment variable can be used to force a
Bioconductor version.
* The `R_REMOTES_UPGRADE` environment variable can be used to set a default
preferred value for the `upgrade =` argument accepted by the various
`install_*()` functions. For example, you can set `R_REMOTES_UPGRADE="always"`
to upgrade dependent packages without asking the user.
* Setting `R_REMOTES_STANDALONE="true"` forces remotes to work in standalone
mode and avoid loading its optional dependencies (curl, git2 and pkgbuild
currently. See "Standalone mode" above.
* Setting `R_REMOTES_NO_ERRORS_FROM_WARNINGS="false"` will cause warning
messages during calls to `install.packages()` to become errors. Often warning
messages are caused by dependencies failing to install.
## License
GPL (>= 2) © Ascent Digital Services, Posit Software, PBC
Owner
- Name: R infrastructure
- Login: r-lib
- Kind: organization
- Repositories: 154
- Profile: https://github.com/r-lib
GitHub Events
Total
- Issues event: 16
- Watch event: 16
- Issue comment event: 57
- Push event: 9
- Pull request event: 6
- Fork event: 3
- Create event: 1
Last Year
- Issues event: 16
- Watch event: 16
- Issue comment event: 57
- Push event: 9
- Pull request event: 6
- Fork event: 3
- Create event: 1
Committers
Last synced: 12 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Gábor Csárdi | c****r@g****m | 381 |
| Jim Hester | j****r@g****m | 333 |
| Kirill Müller | k****r@m****g | 16 |
| maksymis | 3****s | 6 |
| Robert Overman | r****n@n****m | 5 |
| Tyler | t****w@g****m | 4 |
| muschellij2 | m****2@g****m | 4 |
| Jennifer (Jenny) Bryan | j****n@g****m | 4 |
| Riccardo Porreca | r****a@m****m | 3 |
| Kevin Ushey | k****y@g****m | 3 |
| Hsiao-nan Cheung | n****n@g****m | 3 |
| Daniel Possenriede | p****e@g****m | 3 |
| Christophe Dervieux | c****x@g****m | 3 |
| Antoine Sachet | a****c@g****m | 3 |
| Hugo Gruson | 1****o | 3 |
| Watal M. Iwasaki | h****l | 3 |
| Maëlle Salmon | m****n@y****e | 2 |
| Mara Averick | m****k@g****m | 2 |
| Andrew Kane | a****1@g****m | 2 |
| Stu Field | s****d@g****m | 2 |
| bbimber | b****r@g****m | 2 |
| Eli Holmes - NOAA | e****s@n****v | 2 |
| Henrik Bengtsson | hb@a****g | 2 |
| Hannah Frick | h****h@r****m | 2 |
| Andy Teucher | a****r@g****m | 2 |
| Andrew O'Reilly-Nugent | a****t@g****m | 2 |
| Arni Magnusson | a****a@h****s | 2 |
| Benjamin Leutner | b****r@u****e | 1 |
| Matthieu | M****r@g****m | 1 |
| Martin R. Smith | m****h@d****k | 1 |
| and 46 more... | ||
Committer Domains (Top 20 + Academic)
gmx.com: 1
usgs.gov: 1
ymail.com: 1
salim.space: 1
dahl-jacobsen.dk: 1
missouri.edu: 1
dartmouth.edu: 1
unsw.edu.au: 1
ckblack.org: 1
durham.ac.uk: 1
uni-wuerzburg.de: 1
hafro.is: 1
rstudio.com: 1
aroma-project.org: 1
noaa.gov: 1
mirai-solutions.com: 1
novisci.com: 1
mailbox.org: 1
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 171
- Total pull requests: 26
- Average time to close issues: 6 months
- Average time to close pull requests: about 1 month
- Total issue authors: 145
- Total pull request authors: 18
- Average comments per issue: 3.7
- Average comments per pull request: 2.69
- Merged pull requests: 15
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 18
- Pull requests: 6
- Average time to close issues: 7 days
- Average time to close pull requests: 29 minutes
- Issue authors: 16
- Pull request authors: 4
- Average comments per issue: 2.89
- Average comments per pull request: 0.33
- Merged pull requests: 3
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- gaborcsardi (10)
- maksymiuks (4)
- mkoohafkan (3)
- daattali (3)
- AshesITR (2)
- llrs (2)
- ediferreira11 (2)
- isaactpetersen (2)
- muschellij2 (2)
- david-cortes (2)
- kevinushey (2)
- bersbersbers (2)
- dmurdoch (2)
- bczech (1)
- yzzbwxd (1)
Pull Request Authors
- gaborcsardi (4)
- maksymiuks (4)
- muschellij2 (3)
- LiNk-NY (3)
- eeholmes (2)
- bczech (2)
- Bisaloo (2)
- salim-b (2)
- musvaage (1)
- robertdj (1)
- krlmlr (1)
- jeroen (1)
- AshesITR (1)
- MichaelChirico (1)
- MatthieuStigler (1)
Top Labels
Issue Labels
feature (21)
bug (19)
help wanted :heart: (5)
gitlab (4)
documentation (4)
reprex (3)
upkeep (2)
azure (1)
windows (1)
bioconductor (1)
github (1)
tidy-dev-day :nerd_face: (1)
Pull Request Labels
Packages
- Total packages: 3
-
Total downloads:
- cran 548,454 last-month
- Total docker downloads: 48,942,319
-
Total dependent packages: 130
(may contain duplicates) -
Total dependent repositories: 573
(may contain duplicates) - Total versions: 41
- Total maintainers: 1
cran.r-project.org: remotes
R Package Installation from Remote Repositories, Including 'GitHub'
- Homepage: https://remotes.r-lib.org
- Documentation: http://cran.r-project.org/web/packages/remotes/remotes.pdf
- License: MIT + file LICENSE
-
Latest release: 2.5.0
published over 2 years ago
Rankings
Forks count: 0.4%
Downloads: 0.5%
Dependent repos count: 0.6%
Dependent packages count: 0.8%
Stargazers count: 1.3%
Average: 3.5%
Docker downloads count: 17.3%
Maintainers (1)
Last synced:
10 months ago
proxy.golang.org: github.com/r-lib/remotes
- Documentation: https://pkg.go.dev/github.com/r-lib/remotes#section-documentation
- License: other
-
Latest release: v2.5.0+incompatible
published over 2 years ago
Rankings
Dependent packages count: 5.5%
Average: 5.7%
Dependent repos count: 5.9%
Last synced:
10 months ago
conda-forge.org: r-remotes
- Homepage: https://github.com/r-lib/remotes#readme
- License: GPL-2.0-or-later
-
Latest release: 2.4.2
published over 4 years ago
Rankings
Dependent packages count: 4.5%
Dependent repos count: 6.4%
Average: 12.1%
Forks count: 15.0%
Stargazers count: 22.7%
Last synced:
10 months ago
Dependencies
DESCRIPTION
cran
- R >= 3.0.0 depends
- methods * imports
- stats * imports
- tools * imports
- utils * imports
- brew * suggests
- callr * suggests
- codetools * suggests
- covr * suggests
- curl * suggests
- git2r >= 0.23.0 suggests
- knitr * suggests
- mockery * suggests
- pingr * suggests
- pkgbuild >= 1.0.1 suggests
- rmarkdown * suggests
- rprojroot * suggests
- testthat * suggests
- webfakes * suggests
- withr * suggests
tests/testthat/Biobase/DESCRIPTION
cran
- BiocGenerics >= 0.27.1 depends
- R >= 2.10 depends
- utils * depends
- methods * imports
- ALL * suggests
- RUnit * suggests
- golubEsets * suggests
- tkWidgets * suggests
- tools * suggests
tests/testthat/MASS/DESCRIPTION
cran
- R >= 3.1.0 depends
- grDevices * depends
- graphics * depends
- stats * depends
- utils * depends
- methods * imports
- lattice * suggests
- nlme * suggests
- nnet * suggests
- survival * suggests
tests/testthat/invalidpkg/DESCRIPTION
cran
- testthatfoobar * suggests
tests/testthat/noremotes/DESCRIPTION
cran
- testthat * suggests
tests/testthat/urlremotes/DESCRIPTION
cran
- dtplyr * imports
- example * imports
- testthat * suggests
tests/testthat/withremotes/DESCRIPTION
cran
- falsy * imports
- testthat * suggests
.github/workflows/R-CMD-check.yaml
actions
- actions/checkout v3 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yaml
actions
- JamesIves/github-pages-deploy-action v4.4.1 composite
- actions/checkout v3 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pr-commands.yaml
actions
- actions/checkout v3 composite
- r-lib/actions/pr-fetch v2 composite
- r-lib/actions/pr-push v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/test-coverage.yaml
actions
- actions/checkout v3 composite
- actions/upload-artifact v3 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite