Learn R Programming

texor (version 1.5.3)

handle_figures: handle figures

Description

handle figures

Usage

handle_figures(article_dir, file_name)

Value

A block of figure data for better conversion.

Arguments

article_dir

path to the directory which contains tex article

file_name

name of the LaTeX file

Examples

Run this code
article_dir <- system.file("examples/article",
                 package = "texor")
dir.create(your_article_folder <- file.path(tempdir(), "tempdir"))
x <- file.copy(from = article_dir, to = your_article_folder,recursive = TRUE,)
your_article_path <- paste(your_article_folder,"article",sep="/")
texor::handle_figures(your_article_path,texor::get_texfile_name(your_article_path))
unlink(your_article_folder,recursive = TRUE)

Run the code above in your browser using DataLab