Skip to content

Commit

Permalink
[mics]print -> message
Browse files Browse the repository at this point in the history
  • Loading branch information
wenjie1991 committed Aug 9, 2024
1 parent 9e1e5b9 commit d5b802a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions R/lib.R
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ fd_generate_data = function(fdObj, id) {
data = fdObj$env[[id]]$data
readr::write_csv(data, csv_file)
status = "ok"
print(paste0("The csv file is saved to ", csv_file))
message(paste0("The csv file is saved to ", csv_file))
}
return(list(
status = status,
Expand All @@ -252,7 +252,7 @@ fd_generate_pdf = function(fdObj, id) {
units = canvas_options$units,
dpi = canvas_options$dpi)
status = "ok"
print(paste0("The pdf file is saved to ", pdf_file))
message(paste0("The pdf file is saved to ", pdf_file))
}
return(list(
status = status,
Expand Down
2 changes: 1 addition & 1 deletion R/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ response_fd_download_data = function(fo, req) {
}

response_fd_download_pdf = function(fo, req) {
print("response_fd_download_pdf")
# print("response_fd_download_pdf")
parsed_qeury = parse_url(req$QUERY_STRING)$query
figure_id = parsed_qeury$id
res = fd_generate_pdf(fo, figure_id)
Expand Down

0 comments on commit d5b802a

Please sign in to comment.