Skip to contents

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()
#> [1] ‘3.1.11’
texor::include_style_file(your_article_path)
#> [1] TRUE
rebib::aggregate_bibliography(your_article_path)
#> No Bib files found !
#> Cannot aggregate bibliography as there is no BibTeX bibliography
#> No Bib files found !
#> BibTeX file does not exist
#> will parse for bibliography
#> bibtex file created
texor::copy_other_files(your_article_path)
#> /usr/local/bin/pandoc +RTS -K512m -RTS /private/var/folders/3m/p59k4qdj0f17st0gn2cmj3640000gn/T/RtmpkESNqI/tempdir/article/RJwrapper.tex --to native --from latex --output /private/var/folders/3m/p59k4qdj0f17st0gn2cmj3640000gn/T/RtmpkESNqI/tempdir/article/temp-native.txt -s --resource-path /private/var/folders/3m/p59k4qdj0f17st0gn2cmj3640000gn/T/RtmpkESNqI/tempdir/article/RJwrapper.tex --lua-filter /Users/runner/work/_temp/Library/texor/image_list_filter.lua 
#> [1] TRUE
list.files(paste0(your_article_path,"/web/"))
#> [1] "Rlogo-5.png" "example.bib"
unlink(your_article_folder,recursive = TRUE)