firstrun | R Documentation |
This function helps edit the .Renviron file to work with AlpacaforR
. It's for first time users and only needs to be run once.
firstrun(
paper_api = NULL,
live_api = NULL,
polygon_api = NULL,
pro = FALSE,
live = FALSE,
scope = c("user", "project")
)
paper_api |
|
live_api |
|
polygon_api |
|
pro |
|
live |
|
scope |
|
Sets environment variables for this session and edits the .Renviron file in R's home directory path.expand("~")
and adds the specified key/secret combinations for future sessions. If an .Renviron file does not exist, it will be created.
## Not run:
firstrun(
paper_api = c(key = "mypaperkey", secret = "mypapersecret"),
live_api = c(key = "mylivekey", secret = "mylivesecret"),
polygon_api = c(key = "polygonkey"),
live = FALSE,
pro = FALSE
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.