{"id":14068917,"url":"https://github.com/ropensci/datapack","last_synced_at":"2026-02-18T21:03:16.674Z","repository":{"id":20397092,"uuid":"23672990","full_name":"ropensci/datapack","owner":"ropensci","description":"An R package to handle data packages","archived":false,"fork":false,"pushed_at":"2025-10-10T19:58:10.000Z","size":1494,"stargazers_count":42,"open_issues_count":34,"forks_count":10,"subscribers_count":11,"default_branch":"main","last_synced_at":"2026-01-03T01:24:33.837Z","etag":null,"topics":["r","r-package","rstats"],"latest_commit_sha":null,"homepage":"https://docs.ropensci.org/datapack","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ropensci.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-04T17:53:33.000Z","updated_at":"2025-10-10T19:58:07.000Z","dependencies_parsed_at":"2022-07-25T07:46:59.955Z","dependency_job_id":null,"html_url":"https://github.com/ropensci/datapack","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/ropensci/datapack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fdatapack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fdatapack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fdatapack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fdatapack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ropensci","download_url":"https://codeload.github.com/ropensci/datapack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fdatapack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29596127,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T20:59:56.587Z","status":"ssl_error","status_checked_at":"2026-02-18T20:58:41.434Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["r","r-package","rstats"],"created_at":"2024-08-13T07:06:28.943Z","updated_at":"2026-02-18T21:03:16.658Z","avatar_url":"https://github.com/ropensci.png","language":"R","readme":"## datapack: A Flexible Container to Transport and Manipulate Data and Associated Resources\n[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/datapack)](https://cran.r-project.org/package=datapack)\n[![R-CMD-check](https://github.com/ropensci/datapack/workflows/R-CMD-check/badge.svg)](https://github.com/ropensci/datapack/actions)\n\n- **Author**: Matthew B. Jones and Peter Slaughter and S. Jeanette Clark ([NCEAS](https://www.nceas.ucsb.edu))\n- [doi:10.5063/F1QV3JGM](https://doi.org/10.5063/F1QV3JGM)\n- **License**: [Apache 2](https://opensource.org/license/apache-2-0)\n- [Package source code on Github](https://github.com/ropensci/datapack)\n- [**Submit Bugs and feature requests**](https://github.com/ropensci/datapack/issues)\n\nThe *datapack* R package provides an abstraction for collating \nheterogeneous collections of data objects and metadata into a bundle that can \nbe transported and loaded into a single composite file.  The methods in \nthis package provide a convenient way to load data from common repositories \nsuch as DataONE into the R environment, and to document, serialize, and save \ndata from R to data repositories worldwide.\n\n\u003e Note that this package ('datapack') is not related to the similarly named rOpenSci package 'DataPackageR'.\n\u003e Documentation from the DataPackageR github repository states that \"DataPackageR is used to reproducibly\n\u003e process raw data into packaged, analysis-ready data sets.\"\n\n## Installation Notes \n\nThe *datapack* R package requires the R package *redland*. If you are installing on Ubuntu then the Redland C libraries\nmust be installed before the *redland* and *datapack* package can be installed. If you are installing on Mac OS X or Windows then installing these libraries is not required.\n\nThe following instructions illustrate how to install *datapack* and its requirements.\n\n### Installing on Mac OS X\n\nOn Mac OS X datapack can be installed with the following commands:\n\n```\ninstall.packages(\"datapack\")\nlibrary(datapack)\n```\n\nThe *datapack* R package should be available for use at this point.\n\nNote: if you wish to build the required *redland* package from source before installing *datapack*, please see the redland [installation instructions](https://github.com/ropensci/redland-bindings/tree/master/R/redland).\n\n## Installing on Ubuntu\n\nFor Ubuntu, install the required Redland C libraries by entering the following commands \nin a terminal window:\n\n```\nsudo apt-get update\nsudo apt-get install librdf0 librdf0-dev\n```\n\nThen install the R packages from the R console:\n\n```\ninstall.packages(\"datapack\")\nlibrary(datapack)\n```\n\nThe *datapack* R package should be available for use at this point\n\n## Installing on Windows\n\nFor windows, the required redland R package is distributed as a binary release, so it is not\nnecessary to install any additional system libraries.\n\nTo install the R packages from the R console:\n\n```\ninstall.packages(\"datapack\")\nlibrary(datapack)\n```\n\n## Quick Start\n\nSee the full manual for documentation, but once installed, the package can be run in R using:\n\n```\nlibrary(datapack)\nhelp(\"datapack\")\n```\n\nCreate a DataPackage and add metadata and data DataObjects to it:\n\n```\nlibrary(datapack)\nlibrary(uuid)\ndp \u003c- new(\"DataPackage\")\nmdFile \u003c- system.file(\"extdata/sample-eml.xml\", package=\"datapack\")\nmdId \u003c- paste(\"urn:uuid:\", UUIDgenerate(), sep=\"\")\nmd \u003c- new(\"DataObject\", id=mdId, format=\"eml://ecoinformatics.org/eml-2.1.0\", file=mdFile)\naddData(dp, md)\n\ncsvfile \u003c- system.file(\"extdata/sample-data.csv\", package=\"datapack\")\nsciId \u003c- paste(\"urn:uuid:\", UUIDgenerate(), sep=\"\")\nsciObj \u003c- new(\"DataObject\", id=sciId, format=\"text/csv\", filename=csvfile)\ndp \u003c- addData(dp, sciObj)\nids \u003c- getIdentifiers(dp)\n```\n\nAdd a relationship to the DataPackage that shows that the metadata describes, or \"documents\", the science data:\n\n```\ndp \u003c- insertRelationship(dp, subjectID=mdId, objectIDs=sciId)\nrelations \u003c- getRelationships(dp)\n```  \n\nCreate an Resource Description Framework representation of the relationships in the package:\n\n```\nserializationId \u003c- paste(\"resourceMap\", UUIDgenerate(), sep=\"\")\nfilePath \u003c- file.path(sprintf(\"%s/%s.rdf\", tempdir(), serializationId))\nstatus \u003c- serializePackage(dp, filePath, id=serializationId, resolveURI=\"\")\n```  \nSave the DataPackage to a file, using the BagIt packaging format:\n\n```\nbagitFile \u003c- serializeToBagIt(dp) \n```\n\nNote that the *dataone* R package can be used to upload a DataPackage to a DataONE Member Node\nusing the *uploadDataPackage* method. Please see the documentation for the *dataone* R package,\nfor example:\n\n```\nvignette(\"upload-data\", package=\"dataone\")\n```\n\n## Acknowledgements\nWork on this package was supported by:\n\n- NSF-ABI grant #[1262458](https://www.nsf.gov/awardsearch/showAward?AWD_ID=1262458) to C. Gries, M. B. Jones, and S. Collins.\n- NSF-DATANET grants #[0830944](https://www.nsf.gov/awardsearch/showAward?AWD_ID=0830944) and #[1430508](https://www.nsf.gov/awardsearch/showAward?AWD_ID=1430508) to W. Michener, M. B. Jones, D. Vieglais, S. Allard and P. Cruse\n- NSF DIBBS grant #[1443062](https://www.nsf.gov/awardsearch/showAward?AWD_ID=1443062) to T. Habermann and M. B. Jones\n- NSF-PLR grant #[1546024](https://www.nsf.gov/awardsearch/showAward?AWD_ID=1546024) to M. B. Jones, S. Baker-Yeboah, J. Dozier, M. Schildhauer, and A. Budden\n- NSF-PLR grant #[2042102](https://www.nsf.gov/awardsearch/showAward?AWD_ID=2042102) to M. B. Jones, A. Budden, J. Dozier, and M. Schildhauer\n\nAdditional support was provided for working group collaboration by the National Center for Ecological Analysis and Synthesis, a Center funded by the University of California, Santa Barbara, and the State of California.\n\n[![nceas_footer](https://live-ncea-ucsb-edu-v01.pantheonsite.io/sites/default/files/2020-03/NCEAS-full%20logo-4C.png)](https://www.nceas.ucsb.edu)\n\n[![dataone_footer](https://user-images.githubusercontent.com/6643222/162324180-b5cf0f5f-ae7a-4ca6-87c3-9733a2590634.png)](https://www.dataone.org)\n\n[![ropensci_footer](https://ropensci.org/public_images/github_footer.png)](https://ropensci.org/)\n","funding_links":[],"categories":["R"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fropensci%2Fdatapack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fropensci%2Fdatapack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fropensci%2Fdatapack/lists"}