Skip to content

Commit

Permalink
geometa_namespace_exports
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Oct 1, 2024
1 parent 478d1f8 commit 28b8887
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions R/geometa_coverage.R
Original file line number Diff line number Diff line change
Expand Up @@ -268,3 +268,13 @@ geometa_coverage <- function(version = "19115-1/2"){
elements <- elements[!is.na(elements$specification),]
return(elements)
}

geometa_namespace_exports = function(){
if(is.null(.geometa.iso$exports)){
f <- base::system.file("NAMESPACE", package="geometa")
objs <- readLines(f)
exps <- objs[grepl("export", objs)]
.geometa.iso$exports = sub("^export[^\\(]*\\(([^\\)]+)\\)", "\\1", exps)
}
return(.geometa.iso$exports)
}

0 comments on commit 28b8887

Please sign in to comment.