Skip to content

Commit 692941a

Browse files
authored
Merge pull request #106 from inbo/prepare-release
Prepare release 0.4.0
2 parents baa85de + 44a87fa commit 692941a

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

R/add_resource.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#' http://vocab.nerc.ac.uk/collection/MVB/current) and included in the Table
99
#' Schema of the resource.
1010
#'
11-
#' See `vignette("frictionless")` for examples.
11+
#' See `vignette("movepub")` for examples.
1212
#'
1313
#' @inheritParams frictionless::read_resource
1414
#' @param files One or more paths to CSV file(s) that contain the data for

R/datacite_to_eml.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
#' [EML::write_eml()].
88
#' @family support functions
99
#' @export
10+
#' @examples
11+
#' datacite_to_eml("10.5281/zenodo.10053903")
12+
#'
1013
datacite_to_eml <- function(doi) {
1114
# Read metadata from DataCite
1215
doi <- gsub("https://doi.org/", "", doi, fixed = TRUE)

man/add_resource.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/datacite_to_eml.Rd

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vignettes/movepub.Rmd

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ read_package("https://zenodo.org/records/10053903/files/datapackage.json") |>
114114
# Remove the large acceleration resource we won't use (and thus won't download)
115115
remove_resource("acceleration") |>
116116
write_package(dir_source)
117-
#> Downloading file from
118-
#> 'https://zenodo.org/records/10053903/files/O_ASSEN-reference-data.csv'.
117+
#> Downloading file from 'https://zenodo.org/records/10053903/files/O_ASSEN-reference-data.csv'.
119118
#> Downloading file from 'https://zenodo.org/records/10053903/files/O_ASSEN-gps-2018.csv.gz'.
120119
#> Downloading file from 'https://zenodo.org/records/10053903/files/O_ASSEN-gps-2019.csv.gz'.
121120
```
@@ -221,7 +220,7 @@ The resulting `eml.xml` file includes the metadata. **See the `write_eml()` func
221220
``` r
222221
eml
223222
#> $packageId
224-
#> [1] "2fa41b57-50a3-4e71-a862-cd431474d574"
223+
#> [1] "1934f9eb-ce0a-4a60-81b9-78d091c45571"
225224
#>
226225
#> $system
227226
#> [1] "uuid"
@@ -233,8 +232,8 @@ eml
233232
#> $dataset$abstract
234233
#> $dataset$abstract$para
235234
#> [1] "O_ASSEN - Eurasian oystercatchers (Haematopus ostralegus, Haematopodidae) breeding in Assen (the Netherlands) is a bird tracking dataset published by the Vogelwerkgroep Assen, Netherlands Institute of Ecology (NIOO-KNAW), Sovon, Radboud University, the University of Amsterdam and the Research Institute for Nature and Forest (INBO). It contains animal tracking data collected for the study O_ASSEN using trackers developed by the University of Amsterdam Bird Tracking System (UvA-BiTS, http://www.uva-bits.nl). The study was operational from 2018 to 2019. In total 6 individuals of Eurasian oystercatchers (Haematopus ostralegus) have been tagged as a breeding bird in the city of Assen (the Netherlands), mainly to study space use of oystercatchers breeding in urban areas. Data are uploaded from the UvA-BiTS database to Movebank and from there archived on Zenodo (see https://github.com/inbo/bird-tracking). No new data are expected.\n\nSee van der Kolk et al. (2022, https://doi.org/10.3897/zookeys.1123.90623) for a more detailed description of this dataset.\n\nFiles\n\nData in this package are exported from Movebank study 1605797471. Fields in the data follow the Movebank Attribute Dictionary and are described in datapackage.json. Files are structured as a Frictionless Data Package. You can access all data in R via https://zenodo.org/records/10053903/files/datapackage.json using frictionless.\n\n\n\ndatapackage.json: technical description of the data files.\n\nO_ASSEN-reference-data.csv: reference data about the animals, tags and deployments.\n\nO_ASSEN-gps-yyyy.csv.gz: GPS data recorded by the tags, grouped by year.\n\nO_ASSEN-acceleration-yyyy.csv.gz: acceleration data recorded by the tags, grouped by year.\n\n\nAcknowledgements\n\nThese data were collected by Bert Dijkstra and Rinus Dillerop from Vogelwerkgroep Assen, in collaboration with the Netherlands Institute of Ecology (NIOO-KNAW), Sovon, Radboud University and the University of Amsterdam (UvA). Funding was provided by the Prins Bernard Cultuurfonds Drenthe, municipality of Assen, IJsvogelfonds (from Birdlife Netherlands and Nationale Postcodeloterij) and the Waterleiding Maatschappij Drenthe. The dataset was published with funding from Stichting NLBIF - Netherlands Biodiversity Information Facility."
236-
#> [2] "This version adds alt-project-id to the reference-data and references the latest Movebank Attribute Dictionary."
237-
#> [3] "<![CDATA[<span></span>Data have been standardized to Darwin Core using the <a href=\"https://inbo.github.io/movepub/\">movepub</a> R package and are downsampled to the first GPS position per hour. The original data are available in Dijkstra et al. (2023, <a href=\"https://doi.org/10.5281/zenodo.10053903\">https://doi.org/10.5281/zenodo.10053903</a>), a deposit of Movebank study <a href=\"https://www.movebank.org/cms/webapp?gwt_fragment=page=studies,path=study1605797471\">1605797471</a>.]]>"
235+
#> [2] "Changelog\n\n\n\nAdd alt-project-id to the reference-data.\n\nReference the latest Movebank Attribute Dictionary."
236+
#> [3] "Data have been standardized to Darwin Core using the <ulink url=\"https://inbo.github.io/movepub/\"><citetitle>movepub</citetitle></ulink> R package and are downsampled to the first GPS position per hour. The original data are available in Dijkstra et al. (2023, <ulink url=\"https://doi.org/10.5281/zenodo.10053903\"><citetitle>https://doi.org/10.5281/zenodo.10053903</citetitle></ulink>), a deposit of Movebank study <ulink url=\"https://www.movebank.org/cms/webapp?gwt_fragment=page=studies,path=study1605797471\"><citetitle>1605797471</citetitle></ulink>."
238237
#>
239238
#>
240239
#> $dataset$keywordSet
@@ -410,7 +409,7 @@ This `eml.xml` file can be uploaded to a GBIF IPT for publication. Notice that b
410409

411410
``` r
412411
eml$dataset$abstract$para[[3]]
413-
#> [1] "<![CDATA[<span></span>Data have been standardized to Darwin Core using the <a href=\"https://inbo.github.io/movepub/\">movepub</a> R package and are downsampled to the first GPS position per hour. The original data are available in Dijkstra et al. (2023, <a href=\"https://doi.org/10.5281/zenodo.10053903\">https://doi.org/10.5281/zenodo.10053903</a>), a deposit of Movebank study <a href=\"https://www.movebank.org/cms/webapp?gwt_fragment=page=studies,path=study1605797471\">1605797471</a>.]]>"
412+
#> [1] "Data have been standardized to Darwin Core using the <ulink url=\"https://inbo.github.io/movepub/\"><citetitle>movepub</citetitle></ulink> R package and are downsampled to the first GPS position per hour. The original data are available in Dijkstra et al. (2023, <ulink url=\"https://doi.org/10.5281/zenodo.10053903\"><citetitle>https://doi.org/10.5281/zenodo.10053903</citetitle></ulink>), a deposit of Movebank study <ulink url=\"https://www.movebank.org/cms/webapp?gwt_fragment=page=studies,path=study1605797471\"><citetitle>1605797471</citetitle></ulink>."
414413
```
415414

416415
## Example dataset

0 commit comments

Comments
 (0)