Skip to content

Commit

Permalink
importFrom urltools url_parse
Browse files Browse the repository at this point in the history
  • Loading branch information
leeper committed Jun 12, 2017
1 parent dac6775 commit c8f78a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export(set_dataverse_metadata)
export(update_dataset)
export(update_group)
importFrom(stats,setNames)
importFrom(urtools,url_parse)
importFrom(utils,str)
importFrom(utils,unzip)
importFrom(xml2,read_xml)
1 change: 1 addition & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ prepend_doi <- function(dataset) {
dataset
}

#' @importFrom urltools url_parse
api_url <- function(server = Sys.getenv("DATAVERSE_SERVER"), prefix = "api/") {
if (is.null(server) || server == "") {
stop("'server' is missing with no default set in DATAVERSE_SERVER environment variable.")
Expand Down

0 comments on commit c8f78a7

Please sign in to comment.