https://github.com/chendaniely/libloadr

R package that handles loading and installing multiple libraries from an R script file

https://github.com/chendaniely/libloadr

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
  • .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.6%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

R package that handles loading and installing multiple libraries from an R script file

Basic Info
  • Host: GitHub
  • Owner: chendaniely
  • License: mit
  • Language: R
  • Default Branch: master
  • Homepage:
  • Size: 191 KB
Statistics
  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • Open Issues: 9
  • Releases: 0
Created about 11 years ago · Last pushed about 11 years ago
Metadata Files
Readme License

README.md

DOI release downloads

libloadR

R package that handles loading and installing multiple libraries from an R script file

Problem

You are given an R script and it has many library loads. You know you do not have all the libraries needed and there are too many libraries to re-type into a vector

Solution

This package!

The libload function will take a R script file and find all the library (or require) calls. It will then try to load each library, and automaticall run install.packages if you do not already have the library.

How to download

I haven't gotten this cran ready (yet) but there are a few ways you can get the function

  1. using the devtools package and the install_github('chendaniely/libloadR') function to download and install
  2. wget the R script with wget https://github.com/chendaniely/libloadR/raw/master/R/parse_r_script.R and then source the parse_r_script.R file to get the libload function in your environment
  3. Downloading the script directly from github
    1. go to: https://github.com/chendaniely/libloadR/blob/master/R/parserscript.R and then right clock 'raw' and 'save as' the file somewhere on yoru computer and then within R source the file and use the libload function

How to use

libloadR::libload('path_to_r_script_file.R')

Personal Motivation

I had a R script with 18 libraries to load while attending a workshop on GIS in R by Emily Molfino. I knew the majority of these packages were not installed on the server I was working on. I also did not want to end up typing all the package names into a vector to then be passed into install.packages, for some reason I felt R should just do all that for me...

Thanks

Thanks Aaron Schroeder for the idea and name

Owner

  • Name: Daniel Chen
  • Login: chendaniely
  • Kind: user
  • Location: JFK -> DCA -> ROA -> JFK -> YVR
  • Company: @rstudio @UBC-DSCI @UBC-MDS

bow ties are cool

GitHub Events

Total
Last Year

Committers

Last synced: over 1 year ago

All Time
  • Total Commits: 26
  • Total Committers: 1
  • Avg Commits per committer: 26.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Daniel Chen M****k@y****m 26

Issues and Pull Requests

Last synced: over 1 year ago

All Time
  • Total issues: 9
  • Total pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: less than a minute
  • Total issue authors: 1
  • Total pull request authors: 1
  • Average comments per issue: 0.44
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • chendaniely (9)
Pull Request Authors
  • chendaniely (1)
Top Labels
Issue Labels
enhancement (2) bug (1) test (1) error handling (1)
Pull Request Labels