Skip to content

Commit

Permalink
Merge branch 'master' of github.com:eblondel/zen4R
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Feb 27, 2025
2 parents cf8f5bf + 8b25167 commit 3fcbcb4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: zen4R
Version: 0.10
Date: 2024-06-05
Version: 0.10.1
Date: 2025-02-05
Title: Interface to 'Zenodo' REST API
Authors@R: c(
person("Emmanuel", "Blondel", role = c("aut", "cre"), email = "[email protected]", comment = c(ORCID = "0000-0002-5870-5762")),
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Change log

## [zen4R 0.10](https://github.com/eblondel/zen4R) | [![CRAN_Status_Badge](https://img.shields.io/badge/CRAN-unavailable-red.svg)](https://cran.r-project.org/package=zen4R)
## [zen4R 0.10](https://github.com/eblondel/zen4R) | [![CRAN_Status_Badge](https://img.shields.io/badge/CRAN-published-blue.svg)](https://cran.r-project.org/package=zen4R)

**Enhancements**

Expand Down
6 changes: 3 additions & 3 deletions R/ZenodoRecord.R
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ ZenodoRecord <- R6Class("ZenodoRecord",
)
if(!is.null(resource_type)) {
zenodo = ZenodoManager$new()
res = ZENODO$getResourceTypeById(resource_type)
res = zenodo$getResourceTypeById(resource_type)
if(!is.null(res)){
new_rel$resource_type = list(id = resource_type)
}
Expand Down Expand Up @@ -909,7 +909,7 @@ ZenodoRecord <- R6Class("ZenodoRecord",
#' @description Set subjects
#' @param subjects a vector or list of subjects to set for the record
setSubjects = function(subjects){
if(is.null(self$metadata$subjects)) self$metadata$subjects <- list()
self$metadata$subjects <- list()
for(subject in subjects){
self$addSubject(subject)
}
Expand Down Expand Up @@ -1282,7 +1282,7 @@ ZenodoRecord <- R6Class("ZenodoRecord",
exportAs = function(format, filename, append_format = TRUE){
zenodo_url <- self$links$record_html
if(is.null(zenodo_url)) zenodo_url <- self$links$self_html
if(is.null(zenodo_url)){
if(self$is_draft){
stop("Ups, this record seems a draft, can't export metadata until it is published!")
}
metadata_export_url <- switch(format,
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Build Status](https://github.com/eblondel/zen4R/actions/workflows/r-cmd-check.yml/badge.svg?branch=master)](https://github.com/eblondel/zen4R/actions/workflows/r-cmd-check.yml)
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/zen4R)](https://cran.r-project.org/package=zen4R)
[![Github_Status_Badge](https://img.shields.io/badge/Github-0.10-blue.svg)](https://github.com/eblondel/zen4R)
[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/zen4R)](https://cran.r-project.org/package=zen4R)
[![Github_Status_Badge](https://img.shields.io/badge/Github-0.10.1-blue.svg)](https://github.com/eblondel/zen4R)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.2547036.svg)](https://doi.org/10.5281/zenodo.2547036)

**zen4R – R Interface to Zenodo REST API**
Expand Down
1 change: 1 addition & 0 deletions zen4R.Rproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Version: 1.0
ProjectId: d92a0b8d-3a34-4931-9b4b-d592676d6104

RestoreWorkspace: Default
SaveWorkspace: Default
Expand Down

0 comments on commit 3fcbcb4

Please sign in to comment.