Skip to content

Commit

Permalink
Update DESCRIPTION and arguments in get_template for jsonlite::fromJSON
Browse files Browse the repository at this point in the history
  • Loading branch information
afwillia committed Mar 31, 2022
1 parent 8f8e0dc commit eeb222b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ Suggests:
devtools,
dplyr,
httr,
jsonlite,
jsonvalidate,
mockery,
optparse,
Expand Down
2 changes: 1 addition & 1 deletion R/get-template.R
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ rest_post <- function(syn, uri, body = NULL) {
#' @param file Filepath of json schema.
get_file_schema <- function(file) {

schema <- jsonlite::fromJSON(file = file)
schema <- jsonlite::fromJSON(txt = file)
return(schema)

}

0 comments on commit eeb222b

Please sign in to comment.