https://github.com/ElianHugh/tape
A box module manager
https://github.com/ElianHugh/tape
box module-manager package r
Last synced: 4 months ago
JSON representation
A box module manager
- Host: GitHub
- URL: https://github.com/ElianHugh/tape
- Owner: ElianHugh
- Created: 2021-02-25T04:37:17.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-25T04:41:34.000Z (about 4 years ago)
- Last Synced: 2024-11-16T22:42:08.969Z (5 months ago)
- Topics: box, module-manager, package, r
- Language: R
- Homepage:
- Size: 32.2 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - ElianHugh/tape - A box module manager (R)
README
# Tape Module (WIP)
> You can't send a [box::](https://github.com/klmr/box) without tapeRudementary module manager in the vein of yarn and npm. Load via box::use(. / tape). An example use case can be seen below:
### Example 1
> # Files and Functions
### tape.json
A meta-data file similar to package.json or yarn.json. This holds the details of the current project, including used modules and packages.### tape$init
Initialise tape.json and tape.lock files, and additionally creates tape directories.``` r
box::use(. / modules / tape)
tape$init()
```### tape$add
Add a module to your tape.json and install to module repo.``` r
box::use(. / modules / tape)
tape$add(c('A/Repo','Another/Repo'))
```### tape$remove
Remove a module from your tape.json file, and your _local_ module directory if applicable.``` r
box::use(. / modules / tape)
tape$remove(c('A/Repo','Another/Repo'))
```### tape$install
tape$install() downloads all the modules listed in the tape.json. Alternatively, tape$install('A/Repo') downloads a specified repository without adding to tape.json.``` r
box::use(. / modules / tape)tape$install()
# or
tape$install('A/Repo')
```### tape$tape
Wrapper function that calls init() and then install(). Similar to running 'yarn' for any js users out there.``` r
box::use(. / modules / tape)
tape$tape()
```### tape$upgrade
tape$upgrade() checks all modules listed in tape.json for updates. Alternatively, tape$upgrade('A/Repo') updates a specified module.``` r
box::use(. / modules / tape)tape$upgrade()
# or
tape$upgrade('A/Repo')
```