https://github.com/bpbond/luzlogr
Lightweight logging for R scripts.
Science Score: 36.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
1 of 1 committers (100.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.4%) to scientific vocabulary
Repository
Lightweight logging for R scripts.
Basic Info
Statistics
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 3
- Releases: 3
Metadata Files
README.md
luzlogr
Lightweight logging for R scripts.
Installing
luzlogr is available from CRAN, and can be installed using install.packages(). To install the latest, developmental version from this GitHub repository:
- Make sure you have
devtoolsinstalled from CRAN and loaded. install_github("bpbond/luzlogr")
Either way, you can then do:
R
library(luzlogr)
help(package = 'luzlogr')
Logging
Three functions - openlog(), printlog(), closelog() - provide logging of script output. They provide features including priority levels for logs and messages; optionally capturing all output (via sink); switching between logs; and logging to a text file or arbitrary connection. For example:
R
openlog("test.log")
printlog("message")
closelog()
The resulting log file test.log looks something like this:
```
Thu Sep 17 08:46:59 2015 Opening ./test.log
Thu Sep 17 08:46:59 2015 message
Thu Sep 17 08:46:59 2015 Closing test.log flags = 0
R version 3.2.0 (2015-04-16) Platform: x86_64-apple-darwin13.4.0 (64-bit) Running under: OS X 10.10.5 (Yosemite) ```
For more details, see the vignette and documentation.
Owner
- Name: Ben Bond-Lamberty
- Login: bpbond
- Kind: user
- Location: College Park, MD, USA
- Company: PNNL/UMD
- Twitter: benbondlamberty
- Repositories: 33
- Profile: https://github.com/bpbond
Forest ecologist & carbon cycle scientist at @PNNLab , open data & R proponent, mentor, editor. I know how to do a blind hem stitch. He/him/his.
GitHub Events
Total
Last Year
Committers
Last synced: over 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Ben Bond-Lamberty | b****y@p****v | 61 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 21
- Total pull requests: 0
- Average time to close issues: about 1 month
- Average time to close pull requests: N/A
- Total issue authors: 1
- Total pull request authors: 0
- Average comments per issue: 1.43
- Average comments per pull request: 0
- Merged pull requests: 0
- 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
- bpbond (21)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- R >= 3.0 depends
- assertthat >= 0.1 imports
- knitr * suggests
- rmarkdown * suggests
- testthat * suggests