From edd8ed080db46d1a5e833fa9be1ab50a57c77b6e Mon Sep 17 00:00:00 2001 From: eblondel Date: Fri, 18 Nov 2022 13:00:13 +0100 Subject: [PATCH] fix #24 --- DESCRIPTION | 4 ++-- NEWS.md | 10 ++++++++-- R/AtomSchemas.R | 3 ++- README.md | 2 +- man/registerAtomSchema.Rd | 3 ++- 5 files changed, 15 insertions(+), 7 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index e875e89..a81a083 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: atom4R -Version: 0.3-2 -Date: 2022-11-07 +Version: 0.3-3 +Date: 2022-11-18 Title: Tools to Handle and Publish Metadata as 'Atom' XML Format Authors@R: c( person("Emmanuel", "Blondel", role = c("aut", "cre"), email = "emmanuel.blondel1@gmail.com", comment = c(ORCID = "0000-0002-5870-5762"))) diff --git a/NEWS.md b/NEWS.md index 6b78e73..3175edb 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,10 @@ -## [atom4R 0.3-2](https://github.com/eblondel/atom4R) | [![CRAN_Status_Badge](https://img.shields.io/badge/CRAN-unavailable-red.svg)](https://github.com/eblondel/atom4R) +## [atom4R 0.3-3](https://github.com/eblondel/atom4R) | [![CRAN_Status_Badge](https://img.shields.io/badge/CRAN-published-blue.svg)](https://cran.r-project.org/package=atom4R) + +**Miscs** + +* [#24](https://github.com/eblondel/atom4R/issues/24) Issue with registerAtomSchema example + +## [atom4R 0.3-2](https://github.com/eblondel/atom4R) | [![CRAN_Status_Badge](https://img.shields.io/badge/CRAN-published-blue.svg)](https://cran.r-project.org/package=atom4R) **Bug fixes** @@ -8,7 +14,7 @@ * [#23](https://github.com/eblondel/atom4R/issues/23) Provide simple method to export a DCEntry as data.frame -## [atom4R 0.3-1](https://cran.r-project.org/package=atom4R) | [![CRAN_Status_Badge](https://img.shields.io/badge/CRAN-published-blue.svg)](https://cran.r-project.org/package=atom4R) +## [atom4R 0.3-1](https://cran.r-project.org/package=atom4R) | [![CRAN_Status_Badge](https://img.shields.io/badge/CRAN-published-blue.svg)](https://cran.r-project.org/src/contrib/Archive/atom4R/atom4R_0.3-1.tar.gz) **Enhancements** diff --git a/R/AtomSchemas.R b/R/AtomSchemas.R index bc36ff4..24a5dc0 100644 --- a/R/AtomSchemas.R +++ b/R/AtomSchemas.R @@ -10,7 +10,8 @@ #' @param xsdFile the schema XSD file #' #' @examples -#' registerAtomSchema(xsdFile = "https://jvndb.jvn.jp/schema/atom.xsd") +#' atom_xsd_file <- system.file("extdata/schemas/atom/atom.xsd", package = "atom4R") +#' registerAtomSchema(xsdFile = atom_xsd_file) #' #' @author Emmanuel Blondel, \email{emmanuel.blondel1@@gmail.com} # diff --git a/README.md b/README.md index 0ddb37a..1d51d8e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ [![Build Status](https://github.com/eblondel/atom4R/actions/workflows/r-cmd-check.yml/badge.svg?branch=master)](https://github.com/eblondel/atom4R/actions/workflows/r-cmd-check.yml) [![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/atom4R)](https://cran.r-project.org/package=atom4R) -[![Github_Status_Badge](https://img.shields.io/badge/Github-0.3--2-blue.svg)](https://github.com/eblondel/atom4R) +[![Github_Status_Badge](https://img.shields.io/badge/Github-0.3--3-blue.svg)](https://github.com/eblondel/atom4R) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3970169.svg)](https://doi.org/10.5281/zenodo.3970169) **atom4R – Tools to read/write/publish metadata as Atom XML format** diff --git a/man/registerAtomSchema.Rd b/man/registerAtomSchema.Rd index 0da15d8..b3359cd 100644 --- a/man/registerAtomSchema.Rd +++ b/man/registerAtomSchema.Rd @@ -14,7 +14,8 @@ registerAtomSchema(xsdFile) in \pkg{atom4R} } \examples{ - registerAtomSchema(xsdFile = "https://jvndb.jvn.jp/schema/atom.xsd") + atom_xsd_file <- system.file("extdata/schemas/atom/atom.xsd", package = "atom4R") + registerAtomSchema(xsdFile = atom_xsd_file) } \author{