https://github.com/chendaniely/libloadr
R package that handles loading and installing multiple libraries from an R script file
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
Repository
R package that handles loading and installing multiple libraries from an R script file
Basic Info
Statistics
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 9
- Releases: 0
Metadata Files
README.md
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
- using the
devtoolspackage and theinstall_github('chendaniely/libloadR')function to download and install -
wgetthe R script withwget https://github.com/chendaniely/libloadR/raw/master/R/parse_r_script.Rand thensourcetheparse_r_script.Rfile to get thelibloadfunction in your environment - Downloading the script directly from github
- 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
sourcethe file and use thelibloadfunction
- 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
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
- Website: http://chendaniely.github.io
- Twitter: chendaniely
- Repositories: 460
- Profile: https://github.com/chendaniely
bow ties are cool
GitHub Events
Total
Last Year
Committers
Last synced: over 1 year ago
Top Committers
| Name | 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)