Skip to content

anthonynorth/using

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
R
 
 
man
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

release lifecycle build

using

Add version constraints and remote git repositories to library() calls. In interactive mode the user is prompted to install.

Installation

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 or renv.

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: no

Selection: 1
Cloning into 'C:\Users\msmcbain\AppData\Local\Temp\RtmpgduuhY/3327d724-3531-412e-b21b-c7a1621e13d7'...

About

Add optional version constraints to R library() calls

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages