https://github.com/bpbond/luzlogr

Lightweight logging for R scripts.

https://github.com/bpbond/luzlogr

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
Last synced: 10 months ago · JSON representation

Repository

Lightweight logging for R scripts.

Basic Info
  • Host: GitHub
  • Owner: bpbond
  • License: other
  • Language: R
  • Default Branch: master
  • Homepage:
  • Size: 57.6 KB
Statistics
  • Stars: 6
  • Watchers: 1
  • Forks: 0
  • Open Issues: 3
  • Releases: 3
Created almost 11 years ago · Last pushed over 2 years ago
Metadata Files
Readme Changelog License

README.md

luzlogr

Lightweight logging for R scripts.

CRAN_Status_Badge

Installing

luzlogr is available from CRAN, and can be installed using install.packages(). To install the latest, developmental version from this GitHub repository:

  1. Make sure you have devtools installed from CRAN and loaded.
  2. 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

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

All Time
  • Total Commits: 61
  • Total Committers: 1
  • Avg Commits per committer: 61.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
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
enhancement (8) bug (2)
Pull Request Labels

Dependencies

DESCRIPTION cran
  • R >= 3.0 depends
  • assertthat >= 0.1 imports
  • knitr * suggests
  • rmarkdown * suggests
  • testthat * suggests