Skip to content

Trying to convert an EML to ISO: Error in as(f, "ISOMetadata"): no method or default for coercing “character” to “ISOMetadata” #208

@yvanlebras

Description

@yvanlebras

Hi Emmanuel,

I am trying things ;) And notably to convert an EML metadata file into ISOMetadata object so I can look at the ISO19139 resulting metadata file.

Trying with this code (my original EML metadata document PATH is in "file_path" variable):

install.packages("devtools")
devtools::install_github("ropensci/emld")
f <- system.file(file_path, package="emld")
library("geometa")
my_geometa_object <- as(f, "ISOMetadata")

I have an error message:

Error in as(f, "ISOMetadata"): no method or default for coercing “character” to “ISOMetadata”
Traceback:

1. as(f, "ISOMetadata")
2. stop(gettextf("no method or default for coercing %s to %s", dQuote(thisClass), 
 .     dQuote(Class)), domain = NA)

For sure I made something wrong, sorry if really stupid....

Wishing you a very good end of week,

Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions