Description Usage Arguments Value Author(s) References Examples
If a mlx file has been edited, in math4econ for example, check it against git and convert to tex and pdf using command line matlab. Then the function wraps ff_sup_clean_rmd
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ff_sup_clean_mlx(
st_prj_root,
ar_spt_root,
ar_spn_skip,
st_pattern = ".mlx",
st_folder_pdf = "htmlpdfm/",
st_folder_html = "htmlpdfm/",
st_folder_m = "htmlpdfm/",
st_folder_html_m = "",
st_folder_rmd = "",
bl_gen_if_git_old = FALSE,
bl_recursive = TRUE,
bl_verbose = TRUE,
bl_test = TRUE,
it_hierachy_shift = 2,
it_toc_depth = 3,
st_conda_env = "wk_pyfan"
)
|
st_prj_root |
string project root for image folder movement |
ar_spt_root |
array a string array of path roots in which to search for Rmd files to knit |
ar_spn_skip |
array a string array of names, if path found contains any of the string |
st_pattern |
string search pattern suffix in the array, will skip. |
st_folder_pdf |
string subfolder where to store the pdf file, if just empty, store in rmd folder |
st_folder_html |
string subfolder where to store the html file, if just empty, store in rmd folder |
bl_gen_if_git_old |
boolean if true then even if RMD files do not have git status change, still update pdf and html files. |
bl_recursive |
boolean if to search in folders recursively |
bl_test |
boolean if testing, meaning do not generate pdf html, just see which files are been |
it_hierachy_shift |
rmd modification level of promotion from bookdown hierachy to own file hierarchy |
it_toc_depth |
rmd own file outputs toc levels to show considered included, searched and found |
st_conda_env |
string variable of conda env name |
st_folder_R |
string subfolder where to store the R file, if just empty, store in rmd folder |
a list of string paths of files generated
ls_spt_pdf_generated - a list of pdf file names
ls_spt_html_generated - a list of html file names
ls_spt_R_generated - a list of R file names generated
#'
Fan Wang, http://fanwangecon.github.io
https://fanwangecon.github.io/R4Econ/development/inout/fs_rmd_pdf_html.html https://github.com/FanWangEcon/REconTools/blob/master/R/ff_sup_inout.R
1 2 3 | ar_spt_root = c('C:/Users/fan/Math4Econ/math/matrix_application')
ar_spn_skip <- c('matrix', 'tibble', '_main', '_mod')
ff_sup_clean_mlx(ar_spt_root, ar_spn_skip)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.