Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
hillalex committed Sep 3, 2024
1 parent 2417f12 commit e4e5903
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Imports:
mime,
plumber,
porcelain,
rlang,
stringr,
tibble
Remotes:
Expand Down
8 changes: 7 additions & 1 deletion R/api.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ target_post_dataset <- function(req, res) {
dir.create(path, recursive = TRUE)
utils::write.csv(file_body, file.path(path, "data"), row.names = FALSE)
write(xcol, file.path(path, "xcol"))
porcelain:::response_success(jsonlite::unbox(filename))
response_success(jsonlite::unbox(filename))
}

target_get_dataset <- function(name, req) {
Expand Down Expand Up @@ -198,3 +198,9 @@ generate_session_id <- function() {
5,
replace = TRUE))))))
}

response_success <- function(data)
{
list(status = jsonlite::unbox("success"), errors = NULL,
data = data)
}

0 comments on commit e4e5903

Please sign in to comment.