QFileOpen | R Documentation |
Opens a connection for either reading OR writing to a file of a given name. In the reading case, it opens a stream to the file in the Displayr Cloud Drive. In the writing case, it opens a temporary file for writing to and uploads this to the Displayr Cloud Drive on close. Note that writing to a file which already exists will overwrite that file's contents. For more documentation on this function's parameters, see R documentation for opening connections.
QFileOpen(
filename,
open = "r",
blocking = TRUE,
encoding = getOption("encoding"),
raw = FALSE,
method = getOption("url.method", "default"),
mime.type = NA,
company.token = NA
)
filename |
character string. Name of file to be opened. To reference a file in a subdirectory, use double backslashes after each folder (e.g "subdir\file.csv"). |
open |
character string. See documentation for connections. |
blocking |
logical. See documentation for connections. |
encoding |
character string. See documentation for connections. |
raw |
logical. See documentation for connections. |
method |
character string. See documentation for connections. |
mime.type |
character string. The mime-type of this file. If not provided, it will be interpreted from the file extension. |
company.token |
Use this if you need to read from a different company's Displayr Cloud Drive. You need to contact Support to get this token. |
A curl connection (read) or a file connection (write)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.