Description Usage Arguments Examples
This function will generate reports for any template that is product specific. Giving information about all world trade flows for one product.
1 2 3 4 5 | createreport(tfdata, template, fileprefix = NULL, filesuffix = NULL,
productcodeinreport = NULL, reporterinreport = NULL,
inputpath = system.file("templates", package = "tradeflows"),
outputdir = "reports", encoding = "UTF-8", toc = TRUE,
keep_tex = FALSE)
|
tfdata |
a dataframe containing trade flows data that will be passed to R code run by the template |
template |
name of the template file, including .Rmd extension |
fileprefix |
character string at the begining of the generated pdf file name |
productcodeinreport |
numeric or character string leave this variable empty if there are many products |
reporterinreport |
character string leave this variable empty if there are many reporters |
inputpath |
path of the template, defaults to package internal path |
outputdir |
name of the output directory relative to getwd() |
encoding, |
encoding of the template file. See also iconv The names of encodings and which ones are available are platform-dependent. All R platforms support "" (for the encoding of the current locale), "latin1" and "UTF-8". |
1 2 3 4 | ## Not run:
createreport(NULL, template="allproducts.Rmd", reporterinreport ="China")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.