copy_other_files: Copy Supporting Documents like images,bib file,etc.

View source: R/file-tools.R

copy_other_filesR Documentation

Copy Supporting Documents like images,bib file,etc.

Description

Copies supporting documents like images,pdf,bib files into the output folder for building the HTML version of the R-Markdown file.

Usage

copy_other_files(from_path)

Arguments

from_path

String indicating base path for the working directory

Value

copies dependency files into the output folder.

Examples

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="/")
rmarkdown::pandoc_version()
texor::include_style_file(your_article_path)
rebib::aggregate_bibliography(your_article_path)
texor::copy_other_files(your_article_path)
list.files(paste0(your_article_path,"/web/"))
unlink(your_article_folder,recursive = TRUE)

texor documentation built on Oct. 15, 2024, 5:08 p.m.