generate_rmd {texor} | R Documentation |
Modify Markdown to R-markdown
Description
generate rmarkdown file in output folder
Usage
generate_rmd(article_dir, web_dir = TRUE, interactive_mode = FALSE)
Arguments
article_dir |
path to the directory which contains tex article |
web_dir |
option to create a new web directory, default TRUE |
interactive_mode |
interactive mode for converting articles with options. default FALSE |
Value
R-markdown file in the web folder
Note
Use pandoc version greater than or equal to 2.17
Examples
# Note This is a minimal example to execute this function
article_dir <- system.file("examples/article",
package = "texor")
dir.create(your_article_folder <- file.path(tempdir(), "tempdir2"))
x <- file.copy(from = article_dir, to = your_article_folder,recursive = TRUE,)
your_article_path <- xfun::normalize_path(paste(your_article_folder,"article",sep="/"))
texor::include_style_file(your_article_path)
rebib::aggregate_bibliography(your_article_path)
data <- texor::handle_figures(your_article_path,
texor::get_texfile_name(your_article_path))
texor::patch_code_env(your_article_path) # Step 4
texor::patch_table_env(your_article_path) # Step 5
texor::patch_equations(your_article_path) # Step 5.5
texor::patch_figure_env(your_article_path)
rmarkdown::pandoc_version()
texor::convert_to_markdown(your_article_path)
texor::generate_rmd(your_article_path)
unlink(your_article_folder,recursive = TRUE)
[Package texor version 1.3.0 Index]