check_markdown_file {texor}R Documentation

check markdown file

Description

Checks if the markdown file generated is empty or not due to some pandoc related error during conversion to markdown.

Usage

check_markdown_file(article_dir)

Arguments

article_dir

path to the directory which contains tex article

Value

FALSE if markdown file is corrupted/empty else TRUE

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::convert_to_markdown(your_article_path)
texor::check_markdown_file(your_article_path)
unlink(your_article_folder, recursive = TRUE)

[Package texor version 1.3.0 Index]