Learn R Programming

lares (version 4.8.4)

stocks_report: Portfolio's Full Report and Email

Description

This function lets the user create his portfolio's full report with plots and send it to an email with the HTML report attached

Usage

stocks_report(
  data = NA,
  dir = NA,
  mail = FALSE,
  to = "laresbernardo@gmail.com",
  sectors = FALSE,
  creds = NA
)

Arguments

data

Character. stocks_file() output. If NA, automatic report parameters will be used

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

to

Character. Email to send the report to

sectors

Boolean. Return sectors segmentation for ETFs?

creds

Character. Credential's user (see get_creds()) for sending mail and Dropbox interaction

See Also

Other Investment: daily_portfolio(), daily_stocks(), etf_sector(), splot_change(), splot_etf(), splot_growth(), splot_roi(), splot_summary(), splot_types(), stocks_file(), stocks_hist(), stocks_obj(), stocks_quote()

Other Credentials: db_download(), f1_contacts(), geoAddress(), get_credentials(), get_tweets(), mailSend(), queryDB(), queryGA(), slackSend(), stocks_file()

Examples

Run this code
# NOT RUN {
list <- stocks_obj()
stocks_report(list, dir = "~/Desktop")
# }

Run the code above in your browser using DataLab