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
)
Character. stocks_obj()
output. If NA, automatic
parameters and stocks_file()
defaults will be used.
Boolean. Include sold tickers even though not currently in portfolio?
Character. Directory for HTML report output. If set to NA, current working directory will be used. If mail sent, file will be erased
Boolean. Do you want to send an email with the report attached? If not, an HTML file will be created in dir
Boolean. Create and add report as attachment if
mail=TRUE
? If not, no report will be rendered and only tabulated
summaries will be included on email's body.
Character. Email to send the report to
Boolean. Return sectors segmentation for ETFs?
Boolean. Keep HTML file when sent by email?
Character. Credential's user (see get_creds()
) for
sending mail and Dropbox interaction.
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")
# }
Run the code above in your browser using DataLab