Description Usage Arguments Details Author(s) Examples
This takes in the data from readmit_psy_to_psy_query()
and readmit_psy_to_psy_tbl()
puts it into an excel file using save_to_excel.
The RDCOMClient Library must be called into the namespace
first with any of the following
library(RDCOMClient)
require(RDCOMClient)
if(!require(pacman)) install.packages("pacman")
pacman::p_load("RDCOMClient")
1 | readmit_psy_to_psy_automation(.data, .delete_file = FALSE, .email)
|
.data |
The output from the tbl function |
.delete_file |
Default is FALSE, TRUE will delete file |
.email |
Provide the email address for the recipient. The email must be in double quotes like so: \emailc("person@licommunityhospital.org;person2@licommunityhospital.org") using a semi-colon if there is more than one address. |
Takes the output from readmit_psy_to_psy_tbl()
and saves it to
an excel workbook using the writexl::write_xlsx function. The file is saved
to a location specified by the user and upon successful function completion the
file is deleted.
Steven P. Sanderson II, MPH
1 2 3 4 5 6 7 8 | ## Not run:
library(RDCOMClient)
library(magritter)
readmit_psy_to_psy_query() %>%
readmit_psy_to_psy_tbl() %>%
readmit_psy_to_psy_automation(.email = "someone@email.com")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.