Learn R Programming

daiR (version 1.0.0)

text_from_dai_response: Get text from HTTP response object

Description

[Deprecated] text_from_dai_response() is deprecated; please use get_text() instead.

Usage

text_from_dai_response(
  response,
  save_to_file = FALSE,
  dest_dir = getwd(),
  filename = "output"
)

Value

a string (if save_to_file = FALSE)

Arguments

response

an HTTP response object returned by dai_sync()

save_to_file

boolean; whether to save the text as a .txt file

dest_dir

folder path for the .txt output file if save_to_file = TRUE

filename

string to form the stem of the .txt output file

Examples

Run this code
if (FALSE) {
text <- text_from_dai_response(response)

text_from_dai_response(response, save_to_file = TRUE)
}

Run the code above in your browser using DataLab