{"id":14068598,"url":"https://github.com/jsta/externalrdata","last_synced_at":"2025-07-31T23:31:34.453Z","repository":{"id":88675514,"uuid":"91365722","full_name":"jsta/externalrdata","owner":"jsta","description":"Template for R packages that fetch, cache, and serve data from external sources","archived":false,"fork":false,"pushed_at":"2023-10-10T18:04:40.000Z","size":27,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-13T07:15:04.890Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/jsta.png","metadata":{"files":{"readme":"README.Rmd","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-15T17:31:58.000Z","updated_at":"2023-10-10T18:04:46.000Z","dependencies_parsed_at":"2024-08-13T07:14:21.537Z","dependency_job_id":"c7faee95-2fe9-4b5b-a221-061ac8b386de","html_url":"https://github.com/jsta/externalrdata","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsta%2Fexternalrdata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsta%2Fexternalrdata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsta%2Fexternalrdata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsta%2Fexternalrdata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsta","download_url":"https://codeload.github.com/jsta/externalrdata/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228082339,"owners_count":17866603,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-08-13T07:06:18.033Z","updated_at":"2024-12-04T09:31:04.858Z","avatar_url":"https://github.com/jsta.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, echo = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"README-\"\n)\n```\n\n## externalrdata\n\n[![Project Status: Active - The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active) [![Travis-CI Build Status](https://travis-ci.org/jsta/externalrdata.svg?branch=master)](https://travis-ci.org/jsta/externalrdata) \n\nThis package is a template R package to fetch, cache, and serve data from external sources. All data sources are assumed to be `csv` files. The typical workflow would be to fork this package and rename the project-specific pieces including:\n \n * `temp_get`\n    * _baseurl_\n    * _files_\n * `cache_path`\n    * _appname_\n    * _appauthor_\n * function prefixes (e.g. change `temp_get` to `myspecificproject_get`)\n\n## Installation\n\n```{r eval=FALSE}\n# install devtools if not found\n# install.packages(devtools)\ndevtools::install_github(\"jsta/externalrdata\")\n```\n\n## Usage\n\n```{r }\nlibrary(externalrdata)\n```\n\n### Download external data and store in file system\n\n```{r message=FALSE, eval=FALSE}\n# for demonstration purposes we will set on-the-fly compilation to FALSE\ntemp_get(version_id = \"1\", compile = FALSE)\n```\n\n### List files\n\n```{r }\ntemp_ls(version_id = \"1\")\n```\n\n### Compile version\n\n```{r }\n# these files have metadata headers that need to be skipped\ntemp_compile(version_id = \"1\", skip = c(16, 38))\n```\n\n### List versions\n\n```{r }\ntemp_versions()\n```\n\n### Load data\n\n```{r }\ndt \u003c- temp_load(version_id = \"1\")\nnames(dt)\nlapply(dt, head)\n```\n\n## Examples\n\n### Uses this template\n\n* https://github.com/jsta/nesRdata\n* https://github.com/jsta/nsws \n\n### Uses as similar strategy\n\n* https://github.com/jsta/nhdR \n\n## Contributing\n\nContributions welcome in the form of issues and pull requests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsta%2Fexternalrdata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsta%2Fexternalrdata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsta%2Fexternalrdata/lists"}