There are two common use-cases for
Connecting to box.com accounts from boxr for the first time.
Connecting to previously-connected box.com accounts.
In the first case, you will need to provide
In the second case, you can call
box_auth() with no arguments;
the function will look for these in your R environment.
To run this function the first time, you will need access to the
client_secret of a Box interactive-app. If you are using a work account,
this information might be provided to you by your Box-admin team. If you are
using a personal account, you will have to set up a Box interactive-app.
For both cases, these procedures are detailed in this boxr interactive-app article.
box_auth( client_id = NULL, client_secret = NULL, interactive = TRUE, cache = "~/.boxr-oauth", write.Renv, ... )
A logical value or a string.
Other arguments passed to
NULL, called for side effects.
This function has some side effects which make subsequent calls to
a browser window may be opened at box.com, for you to authorize to your Box app.
a token file is written, according to the value of
cache. The default
behaviour is to write this file to
options() are set for your session to manage the token.
BOX_CLIENT_SECRET are set.
if these environment variables have changed, and you have the
usethis package installed, it will copy
some text to your clipboard that you can paste into your
a message is printed to the console.