diff --git a/pkgdown.yml b/pkgdown.yml index eebd460..6907835 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -3,5 +3,5 @@ pkgdown: 2.0.9 pkgdown_sha: ~ articles: zen4R: zen4R.html -last_built: 2024-05-15T15:18Z +last_built: 2024-05-15T23:14Z diff --git a/reference/download_zenodo.html b/reference/download_zenodo.html index dfec487..fcb2f97 100644 --- a/reference/download_zenodo.html +++ b/reference/download_zenodo.html @@ -110,7 +110,25 @@

Examples

#> ! No record for id '2547036'! #> Successfully fetched list of published records - page 1 #> Successfully fetched list of published records! -#> Error in if (result$getConceptDOI() == conceptdoi) { infoMsg = sprintf("Successfully fetched published record for concept DOI '%s'!", conceptdoi) cli::cli_alert_success(infoMsg) self$INFO(infoMsg)} else { result <- NULL}: argument is of length zero +#> Successfully fetched published record for concept DOI '10.5281/zenodo.2547036'! +#> Download in sequential mode +#> [zen4R][INFO] ZenodoRecord - Download in sequential mode +#> Will download 2 files from record '6656251' (doi: '10.5281/zenodo.6656251') - total size: 114.5 KiB +#> [zen4R][INFO] ZenodoRecord - Will download 2 files from record '6656251' (doi: '10.5281/zenodo.6656251') - total size: 114.5 KiB +#> Downloading file 'zen4R-0.6-1.tar.gz' - size: 50.4 KiB +#> [zen4R][INFO] Downloading file 'zen4R-0.6-1.tar.gz' - size: 50.4 KiB +#> Downloading file 'zen4R-0.6-1.zip' - size: 64 KiB +#> [zen4R][INFO] Downloading file 'zen4R-0.6-1.zip' - size: 64 KiB +#> Files downloaded at '/home/runner/work/zen4R/zen4R/docs/reference'. +#> [zen4R][INFO] Files downloaded at '/home/runner/work/zen4R/zen4R/docs/reference'. +#> Verifying file integrity... +#> [zen4R][INFO] ZenodoRecord - Verifying file integrity... +#> File 'zen4R-0.6-1.tar.gz': integrity verified (md5sum: a7cf6c5a9bda54867ea3bcab2a5dfdf9) +#> [zen4R][INFO] File 'zen4R-0.6-1.tar.gz': integrity verified (md5sum: a7cf6c5a9bda54867ea3bcab2a5dfdf9) +#> File 'zen4R-0.6-1.zip': integrity verified (md5sum: 0cd3611a83c51e9c23703bd27e1beb92) +#> [zen4R][INFO] File 'zen4R-0.6-1.zip': integrity verified (md5sum: 0cd3611a83c51e9c23703bd27e1beb92) +#> End of download +#> [zen4R][INFO] ZenodoRecord - End of download library(parallel) #download files as parallel using a cluster approach (for both Unix/Win systems) @@ -123,7 +141,23 @@

Examples

#> ! No record for id '2547036'! #> Successfully fetched list of published records - page 1 #> Successfully fetched list of published records! -#> Error in if (result$getConceptDOI() == conceptdoi) { infoMsg = sprintf("Successfully fetched published record for concept DOI '%s'!", conceptdoi) cli::cli_alert_success(infoMsg) self$INFO(infoMsg)} else { result <- NULL}: argument is of length zero +#> Successfully fetched published record for concept DOI '10.5281/zenodo.2547036'! +#> Download in parallel mode +#> [zen4R][INFO] ZenodoRecord - Download in parallel mode +#> Using cluster-based parallel handler (cluster 'cl' argument specified) +#> [zen4R][INFO] ZenodoRecord - Using cluster-based parallel handler (cluster 'cl' argument specified) +#> Will download 2 files from record '6656251' (doi: '10.5281/zenodo.6656251') - total size: 114.5 KiB +#> [zen4R][INFO] ZenodoRecord - Will download 2 files from record '6656251' (doi: '10.5281/zenodo.6656251') - total size: 114.5 KiB +#> Files downloaded at '/home/runner/work/zen4R/zen4R/docs/reference'. +#> [zen4R][INFO] Files downloaded at '/home/runner/work/zen4R/zen4R/docs/reference'. +#> Verifying file integrity... +#> [zen4R][INFO] ZenodoRecord - Verifying file integrity... +#> File 'zen4R-0.6-1.tar.gz': integrity verified (md5sum: a7cf6c5a9bda54867ea3bcab2a5dfdf9) +#> [zen4R][INFO] File 'zen4R-0.6-1.tar.gz': integrity verified (md5sum: a7cf6c5a9bda54867ea3bcab2a5dfdf9) +#> File 'zen4R-0.6-1.zip': integrity verified (md5sum: 0cd3611a83c51e9c23703bd27e1beb92) +#> [zen4R][INFO] File 'zen4R-0.6-1.zip': integrity verified (md5sum: 0cd3611a83c51e9c23703bd27e1beb92) +#> End of download +#> [zen4R][INFO] ZenodoRecord - End of download #download files as parallel using mclapply (for Unix systems) download_zenodo("10.5281/zenodo.2547036", @@ -135,7 +169,23 @@

Examples

#> ! No record for id '2547036'! #> Successfully fetched list of published records - page 1 #> Successfully fetched list of published records! -#> Error in if (result$getConceptDOI() == conceptdoi) { infoMsg = sprintf("Successfully fetched published record for concept DOI '%s'!", conceptdoi) cli::cli_alert_success(infoMsg) self$INFO(infoMsg)} else { result <- NULL}: argument is of length zero +#> Successfully fetched published record for concept DOI '10.5281/zenodo.2547036'! +#> Download in parallel mode +#> [zen4R][INFO] ZenodoRecord - Download in parallel mode +#> Using non cluster-based (no cluster 'cl' argument specified) +#> [zen4R][INFO] ZenodoRecord - Using non cluster-based (no cluster 'cl' argument specified) +#> Will download 2 files from record '6656251' (doi: '10.5281/zenodo.6656251') - total size: 114.5 KiB +#> [zen4R][INFO] ZenodoRecord - Will download 2 files from record '6656251' (doi: '10.5281/zenodo.6656251') - total size: 114.5 KiB +#> Files downloaded at '/home/runner/work/zen4R/zen4R/docs/reference'. +#> [zen4R][INFO] Files downloaded at '/home/runner/work/zen4R/zen4R/docs/reference'. +#> Verifying file integrity... +#> [zen4R][INFO] ZenodoRecord - Verifying file integrity... +#> File 'zen4R-0.6-1.tar.gz': integrity verified (md5sum: a7cf6c5a9bda54867ea3bcab2a5dfdf9) +#> [zen4R][INFO] File 'zen4R-0.6-1.tar.gz': integrity verified (md5sum: a7cf6c5a9bda54867ea3bcab2a5dfdf9) +#> File 'zen4R-0.6-1.zip': integrity verified (md5sum: 0cd3611a83c51e9c23703bd27e1beb92) +#> [zen4R][INFO] File 'zen4R-0.6-1.zip': integrity verified (md5sum: 0cd3611a83c51e9c23703bd27e1beb92) +#> End of download +#> [zen4R][INFO] ZenodoRecord - End of download # } diff --git a/reference/export_zenodo.html b/reference/export_zenodo.html index d1823ea..dca59aa 100644 --- a/reference/export_zenodo.html +++ b/reference/export_zenodo.html @@ -104,7 +104,8 @@

Examples

#> ! No record for id '2547036'! #> Successfully fetched list of published records - page 1 #> Successfully fetched list of published records! -#> Error in if (result$getConceptDOI() == conceptdoi) { infoMsg = sprintf("Successfully fetched published record for concept DOI '%s'!", conceptdoi) cli::cli_alert_success(infoMsg) self$INFO(infoMsg)} else { result <- NULL}: argument is of length zero +#> Successfully fetched published record for concept DOI '10.5281/zenodo.2547036'! +#> [1] "test.bib" # } diff --git a/reference/get_versions.html b/reference/get_versions.html index db66b96..37fdb9b 100644 --- a/reference/get_versions.html +++ b/reference/get_versions.html @@ -89,7 +89,45 @@

Examples

#> ! No record for id '2547036'! #> Successfully fetched list of published records - page 1 #> Successfully fetched list of published records! -#> Error in if (result$getConceptDOI() == conceptdoi) { infoMsg = sprintf("Successfully fetched published record for concept DOI '%s'!", conceptdoi) cli::cli_alert_success(infoMsg) self$INFO(infoMsg)} else { result <- NULL}: argument is of length zero +#> Successfully fetched published record for concept DOI '10.5281/zenodo.2547036'! +#> Successfully fetched list of published records - page 1 +#> Successfully fetched list of published records! +#> created updated date version +#> 1 2019-01-22 22:44:30 2023-09-21 06:53:02 2019-01-22 0.1-beta +#> 2 2019-06-04 12:47:55 2023-09-21 06:53:02 2019-06-03 0.1 +#> 3 2019-08-02 08:38:03 2023-09-21 06:53:02 2019-08-02 0.2 +#> 4 2019-08-27 12:07:00 2023-09-21 06:53:02 2019-08-27 0.3 +#> 5 2020-09-02 08:48:36 2023-09-21 06:53:02 2020-09-02 0.4 +#> 6 2020-09-03 10:59:46 2023-09-21 06:53:02 2020-09-03 0.4-1 +#> 7 2020-09-07 06:23:18 2023-09-21 06:53:02 2020-09-04 0.4-2 +#> 8 2021-09-15 12:58:02 2023-09-21 06:53:03 2021-09-15 0.5 +#> 9 2021-10-29 17:40:04 2023-09-21 06:53:03 2021-10-29 0.5-1 +#> 10 2021-11-30 07:59:59 2023-09-21 06:53:03 2021-11-30 0.5-2 +#> 11 2022-02-16 16:33:18 2023-09-21 06:53:03 2022-02-16 0.5-3 +#> 12 2022-05-01 14:35:42 2023-09-21 06:53:03 2022-05-01 0.6 +#> 13 2022-06-17 11:23:00 2023-09-21 06:53:03 2022-06-17 0.6-1 +#> 14 2022-08-19 08:03:38 2023-09-21 06:53:04 2022-08-19 0.7 +#> 15 2023-01-09 23:10:23 2023-09-21 06:53:04 2023-01-09 0.7-1 +#> 16 2023-01-19 18:44:58 2023-09-21 06:53:04 2023-01-19 0.8 +#> 17 2023-09-21 06:51:58 2023-09-21 14:26:58 2023-09-20 0.9 +#> doi +#> 1 10.5281/zenodo.2547037 +#> 2 10.5281/zenodo.3238351 +#> 3 10.5281/zenodo.3358590 +#> 4 10.5281/zenodo.3378733 +#> 5 10.5281/zenodo.4011667 +#> 6 10.5281/zenodo.4013362 +#> 7 10.5281/zenodo.4017156 +#> 8 10.5281/zenodo.5509954 +#> 9 10.5281/zenodo.5619381 +#> 10 10.5281/zenodo.5741143 +#> 11 10.5281/zenodo.6109137 +#> 12 10.5281/zenodo.6509945 +#> 13 10.5281/zenodo.6656251 +#> 14 10.5281/zenodo.7009208 +#> 15 10.5281/zenodo.7517728 +#> 16 10.5281/zenodo.7552287 +#> 17 10.5281/zenodo.8365600 # } diff --git a/reference/get_zenodo.html b/reference/get_zenodo.html index 3b178a9..1b7bb51 100644 --- a/reference/get_zenodo.html +++ b/reference/get_zenodo.html @@ -96,7 +96,116 @@

Examples

#> ! No record for id '2547036'! #> Successfully fetched list of published records - page 1 #> Successfully fetched list of published records! -#> Error in if (result$getConceptDOI() == conceptdoi) { infoMsg = sprintf("Successfully fetched published record for concept DOI '%s'!", conceptdoi) cli::cli_alert_success(infoMsg) self$INFO(infoMsg)} else { result <- NULL}: argument is of length zero +#> Successfully fetched published record for concept DOI '10.5281/zenodo.2547036'! +#> <ZenodoRecord> +#> ....|-- created: 2022-06-17T11:23:00.916079+00:00 +#> ....|-- updated: 2023-09-21T06:53:03.924722+00:00 +#> ....|-- revision_id: 7 +#> ....|-- is_draft: FALSE +#> ....|-- is_published: TRUE +#> ....|-- status: published +#> ....|-- versions: +#> ........|-- is_latest: FALSE +#> ........|-- index: 13 +#> ....|-- access: +#> ........|-- record: public +#> ........|-- files: public +#> ........|-- embargo: +#> ............|-- active: FALSE +#> ............|-- reason: +#> ........|-- status: open +#> ....|-- files: +#> ........|-- zen4R-0.6-1.tar.gz: +#> ............|-- filename: zen4R-0.6-1.tar.gz +#> ............|-- filesize: 51648 +#> ............|-- checksum: a7cf6c5a9bda54867ea3bcab2a5dfdf9 +#> ............|-- download: https://zenodo.org/api/records/6656251/files/zen4R-0.6-1.tar.gz/content +#> ........|-- zen4R-0.6-1.zip: +#> ............|-- filename: zen4R-0.6-1.zip +#> ............|-- filesize: 65566 +#> ............|-- checksum: 0cd3611a83c51e9c23703bd27e1beb92 +#> ............|-- download: https://zenodo.org/api/records/6656251/files/zen4R-0.6-1.zip/content +#> ....|-- id: 6656251 +#> ....|-- links: +#> ........|-- self: https://zenodo.org/api/records/6656251 +#> ........|-- self_html: https://zenodo.org/records/6656251 +#> ........|-- self_doi: https://zenodo.org/doi/10.5281/zenodo.6656251 +#> ........|-- doi: https://doi.org/10.5281/zenodo.6656251 +#> ........|-- parent: https://zenodo.org/api/records/2547036 +#> ........|-- parent_html: https://zenodo.org/records/2547036 +#> ........|-- parent_doi: https://zenodo.org/doi/10.5281/zenodo.2547036 +#> ........|-- self_iiif_manifest: https://zenodo.org/api/iiif/record:6656251/manifest +#> ........|-- self_iiif_sequence: https://zenodo.org/api/iiif/record:6656251/sequence/default +#> ........|-- files: https://zenodo.org/api/records/6656251/files +#> ........|-- media_files: https://zenodo.org/api/records/6656251/media-files +#> ........|-- archive: https://zenodo.org/api/records/6656251/files-archive +#> ........|-- archive_media: https://zenodo.org/api/records/6656251/media-files-archive +#> ........|-- latest: https://zenodo.org/api/records/6656251/versions/latest +#> ........|-- latest_html: https://zenodo.org/records/6656251/latest +#> ........|-- draft: https://zenodo.org/api/records/6656251/draft +#> ........|-- versions: https://zenodo.org/api/records/6656251/versions +#> ........|-- access_links: https://zenodo.org/api/records/6656251/access/links +#> ........|-- access_grants: https://zenodo.org/api/records/6656251/access/grants +#> ........|-- access_users: https://zenodo.org/api/records/6656251/access/users +#> ........|-- access_request: https://zenodo.org/api/records/6656251/access/request +#> ........|-- access: https://zenodo.org/api/records/6656251/access +#> ........|-- reserve_doi: https://zenodo.org/api/records/6656251/draft/pids/doi +#> ........|-- communities: https://zenodo.org/api/records/6656251/communities +#> ........|-- communities-suggestions: https://zenodo.org/api/records/6656251/communities-suggestions +#> ........|-- requests: https://zenodo.org/api/records/6656251/requests +#> ....|-- metadata: +#> ........|-- resource_type: +#> ............|-- id: software +#> ........|-- creators: +#> ........|-- title: zen4R: R Interface to Zenodo REST API +#> ........|-- publisher: Zenodo +#> ........|-- publication_date: 2022-06-17 +#> ........|-- subjects: +#> ........|-- contributors: +#> ........|-- languages: +#> ........|-- version: 0.6-1 +#> ........|-- rights: +#> ........|-- description: <p>zen4R: R Interface to Zenodo REST API</p> +#> +#> <p><a href="https://github.com/eblondel/zen4R/releases/tag/v0.6-1">https://github.com/eblondel/zen4R/releases/tag/v0.6-1</a></p> +#> ........|-- additional_descriptions: +#> ........|-- funding: +#> ........|-- related_identifiers: <NULL> +#> ....|-- parent: +#> ........|-- id: 2547036 +#> ........|-- access: +#> ............|-- owned_by: 5183 +#> ........|-- communities: +#> ............|-- ids: 81c04e58-2563-4999-92ed-447ad997ac00 +#> ............|-- ids: f0a8b890-f97a-4eb2-9eac-8b8a712d3a6c +#> ............|-- default: 81c04e58-2563-4999-92ed-447ad997ac00 +#> ............|-- entries: list(id = "81c04e58-2563-4999-92ed-447ad997ac00", created = "2022-03-17T22:49:56.776909+00:00", updated = "2022-03-17T22:49:56.776923+00:00", links = list(), revision_id = 0, slug = "openfair", metadata = list(title = "OpenFair"), access = list(visibility = "public", members_visibility = "public", member_policy = "open", record_policy = "open", review_policy = "closed"), deletion_status = list(is_deleted = FALSE, status = "P"), children = list(allow = FALSE)) +#> ............|-- entries: list(id = "f0a8b890-f97a-4eb2-9eac-8b8a712d3a6c", created = "2022-11-23T15:53:29.436323+00:00", updated = "2024-03-20T06:47:47.577483+00:00", links = list(), revision_id = 16, slug = "eu", metadata = list(title = "EU Open Research Repository (Pilot)", type = list(id = "organization", title = list(de = "Organisation", en = "Organization")), website = "https://research-and-innovation.ec.europa.eu", organizations = list(list(id = "00k4n6c32", name = "European Commission"))), access = list(visibility = "public", +#> members_visibility = "public", member_policy = "open", record_policy = "open", review_policy = "closed"), theme = list(style = list(font = list(size = "16px", family = "Arial, sans-serif", weight = 600), primaryColor = "#004494", secondaryColor = "#FFD617", tertiaryColor = "#e3eefd", primaryTextColor = "#FFFFFF", secondaryTextColor = "#000000", tertiaryTextColor = "#1c5694", mainHeaderBackgroundColor = "#FFFFFF"), brand = "horizon", enabled = TRUE), deletion_status = list(is_deleted = FALSE, +#> status = "P"), children = list(allow = TRUE)) +#> ........|-- pids: +#> ............|-- doi: 10.5281/zenodo.2547036 +#> ............|-- doi: datacite +#> ............|-- doi: datacite +#> ....|-- pids: +#> ........|-- doi: +#> ............|-- identifier: 10.5281/zenodo.6656251 +#> ............|-- provider: datacite +#> ............|-- client: datacite +#> ........|-- oai: +#> ............|-- identifier: oai:zenodo.org:6656251 +#> ............|-- provider: oai +#> ....|-- stats: +#> ↓ this_version.downloads = 51 +#> ↓ this_version.unique_downloads = 20 +#> ↓ all_versions.downloads = 1375 +#> ↓ all_versions.unique_downloads = 584 +#> 👁 this_version.views = 105 +#> 👁 this_version.unique_views = 103 +#> 👁 all_versions.views = 1596 +#> 👁 all_versions.unique_views = 1433 +#> ■ this_version.data_volume = 2981998 +#> ■ all_versions.data_volume = 48725493 # } diff --git a/reference/test.bib b/reference/test.bib new file mode 100644 index 0000000..0830046 --- /dev/null +++ b/reference/test.bib @@ -0,0 +1,11 @@ +@software{blondel_2022_6656251, + author = {Blondel, Emmanuel and + Barde, Julien}, + title = {zen4R: R Interface to Zenodo REST API}, + month = jun, + year = 2022, + publisher = {Zenodo}, + version = {0.6-1}, + doi = {10.5281/zenodo.6656251}, + url = {https://doi.org/10.5281/zenodo.6656251} +} \ No newline at end of file diff --git a/reference/zen4R-0.6-1.tar.gz b/reference/zen4R-0.6-1.tar.gz new file mode 100644 index 0000000..410434b Binary files /dev/null and b/reference/zen4R-0.6-1.tar.gz differ diff --git a/reference/zen4R-0.6-1.zip b/reference/zen4R-0.6-1.zip new file mode 100644 index 0000000..2854d42 Binary files /dev/null and b/reference/zen4R-0.6-1.zip differ