stocks_report | R Documentation |
This function lets the user create his portfolio's full report with plots and send it to an email with the HTML report attached
stocks_report(
data = NA,
keep_old = TRUE,
dir = NA,
mail = FALSE,
attachment = TRUE,
to = "laresbernardo@gmail.com",
sectors = FALSE,
keep = FALSE,
creds = NA,
cache = TRUE
)
data |
Character. |
keep_old |
Boolean. Include sold tickers even though not currently in portfolio? |
dir |
Character. Directory for HTML report output. If set to NA, current working directory will be used. If mail sent, file will be erased |
mail |
Boolean. Do you want to send an email with the report attached? If not, an HTML file will be created in dir |
attachment |
Boolean. Create and add report as attachment if
|
to |
Character. Email to send the report to |
sectors |
Boolean. Return sectors segmentation for ETFs? |
keep |
Boolean. Keep HTML file when sent by email? |
creds |
Character. Credential's user (see |
cache |
Boolean. Use daily cache if available? |
Invisible list. Aggregated results and plots.
Other Investment:
daily_portfolio()
,
daily_stocks()
,
etf_sector()
,
splot_change()
,
splot_divs()
,
splot_etf()
,
splot_growth()
,
splot_roi()
,
splot_summary()
,
splot_types()
,
stocks_file()
,
stocks_obj()
,
stocks_quote()
Other Credentials:
db_download()
,
db_upload()
,
get_credentials()
,
get_tweets()
,
mail_send()
,
queryDB()
,
queryGA()
,
slackSend()
,
stocks_file()
## Not run:
list <- stocks_obj()
stocks_report(list, dir = "~/Desktop")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.