Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 2.77 KB

README.md

File metadata and controls

57 lines (38 loc) · 2.77 KB

datamgmt

Data management utilities for curating, documenting, and publishing data

Build Status CRAN_Status_Badge

The datamgmt R package supports management of data packages on the Arctic Data Center (ADC) and State of Alaska's Salmon and People (SASAP) data portals.

Installing

You can install the development version from GitHub with:

# install.packages("remotes")
remotes::install_github("NCEAS/datamgmt")

Contributing

  • Submit suggestions or bugs as Issues.
  • For pull requests, target the master branch
  • Follow the tidyverse style conventions, with the following specific style preferences:
    • use underscore for all variable names unless referring to an EML object (e.g., otherEntity, publicationDate, etc.)
    • include argument checks in the form of stopifnot() statements for all functions
  • Before submitting a pull request, please update documentation, check package, and run tests:
    • use devtools::check()
    • fix any ERRORs and test failures to ensure the Travis CI build passes

Errors

The create_attributes_table() function sometimes returns the following error:

Warning: Error in safeFromJSON: Argument 'txt' is not a valid JSON string.
  [No stack trace available]
Error in safeFromJSON(charData, simplifyVector = FALSE) : 
  Argument 'txt' is not a valid JSON string.

It is probably because your version of httpuv is incompatible. Run devtools::install_version("httpuv", "1.4.3") and restart your R session and try running the code again. Downgrading to version 1.4.3 usually solves the issue. However, you can also try upgrading to the latest release of httpuv. It is also possible that this is a browser issue. Try switching your browser if this does not work.

Acknowledgements

Work on this package was supported by:

  • The Arctic Data Center: NSF-PLR grant #1546024 to M. B. Jones, S. Baker-Yeboah, J. Dozier, M. Schildhauer, and A. Budden

Additional support was provided by the National Center for Ecological Analysis and Synthesis, a Center funded by the University of California, Santa Barbara, and the State of California.

nceas_footer