Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anthonynorth/using
Add optional version constraints to R library() calls
https://github.com/anthonynorth/using
Last synced: 8 days ago
JSON representation
Add optional version constraints to R library() calls
- Host: GitHub
- URL: https://github.com/anthonynorth/using
- Owner: anthonynorth
- License: mit
- Created: 2020-02-25T02:13:02.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-17T04:17:22.000Z (about 3 years ago)
- Last Synced: 2024-11-30T20:51:40.159Z (12 days ago)
- Language: R
- Homepage:
- Size: 31.3 KB
- Stars: 27
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - anthonynorth/using - Add optional version constraints to R library() calls (R)
README
using
Add version constraints and remote git repositories tolibrary()
calls.
In interactive mode the user is prompted to install.## Installation
```r
remotes::install_github("anthonynorth/using@*release")
```## Usage
Using is intended for use without being attached via `library(using)`. This
helps with detecting dependency declarations for [`capsule`](https://github.com/milesmcbain/capsule) or [`renv`](https://github.com/rstudio/renv/).```r
using::pkg(capsule)
using::pkg(dplyr, min_version = "0.8.0")
using::pkg(h3jsr, min_version = "1.0.0", repo = "https://github.com/obrl-soil/h3jsr")
```## Interactive use
In interactive sessions the user will be prompted to install a qualifying version of the package if one can be found at `repo` or CRAN if repo is missing.
```
> using::pkg("rdeck", min_version = "0.2.5", repo = "http://github.com/anthonynorth/rdeck")
A suitable version of package {"rdeck"} was not found. Would you like to install now?1: yes
2: noSelection: 1
Cloning into 'C:\Users\msmcbain\AppData\Local\Temp\RtmpgduuhY/3327d724-3531-412e-b21b-c7a1621e13d7'...
```