db_download | R Documentation |
This function lets the user download a file from Dropbox, specifying its name, using a previously created token or with interactive window.
db_download(
query,
local_path = NULL,
xlsx = TRUE,
token_dir = NA,
token_name = "token_pers.rds",
quiet = FALSE
)
query |
Search string. This string is split (on spaces) into individual words. Files will be used if they contain all words in the search string. |
local_path |
Character. Path to save file to. If |
xlsx |
Boolean. Is it an Excel file? Can be returned as a list for each tab and not as a file if needed. Will delete downloaded file. |
token_dir |
Character. RDS with token local directory. You may set to
NA if you already set your credentials (see |
token_name |
Character. RDS file name with your token's data. |
quiet |
Boolean. Keep quiet? If not, show informative messages. |
If query
returns a .xlsx file and xlsx=TRUE
, will
return a data.frame. Else, local_path
string.
Other Tools:
autoline()
,
bind_files()
,
bring_api()
,
chr2num()
,
db_upload()
,
export_plot()
,
export_results()
,
files_functions()
,
font_exists()
,
formatColoured()
,
formatHTML()
,
get_credentials()
,
glued()
,
grepm()
,
h2o_selectmodel()
,
haveInternet()
,
image_metadata()
,
importxlsx()
,
ip_data()
,
json2vector()
,
list_cats()
,
listfiles()
,
mail_send()
,
markdown2df()
,
move_files()
,
msplit()
,
myip()
,
quiet()
,
read.file()
,
statusbar()
,
tic()
,
try_require()
,
updateLares()
,
warnifnot()
,
what_size()
Other Credentials:
db_upload()
,
get_credentials()
,
get_tweets()
,
mail_send()
,
queryDB()
,
queryGA()
,
slackSend()
,
stocks_file()
Other Dropbox:
db_upload()
## Not run:
# Download a specific file
db_download("stocksReport.Rmd", local_path = "~/Desktop/generic.Rmd")
# Import an Excel file from Dropbox into a data.frame
df <- db_download("Portfolio LC.xlsx", xlsx = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.