vim:linebreak:nowrap:nospell tw=78 fo=tqlnr foldcolumn=3

Spaces, no Tabs

title: Template for .Rmd output: pdf_document: latex_engine: xelatex toc: TRUE toc_depth: 1 fontsize: 12pt geometry: margin=0.5in,top=0.25in


knitr::opts_chunk$set(echo = TRUE,  
                                            comment="      ##",  
                                            error=TRUE, 
                                            collapse=TRUE) 
library(jimTools)

BEGIN - from R-pkgs v2; Chaptr 11

All give crouton errors?

browseVignettes("tibble")
browseVignettes(package = "tibble")
browseVignettes()

Work

# all
vignette()
vignette(package="broom")

Do once, sets up structure.

usethis::use_vignette("jim_first_vignette")

optional step, build() will creat vignette

# a bit slow, crashes on callr::r(...), HTTP 401, bad credentials??
devtools::build_vignettes()

knitr::knit_exit() 

\newpage

file <- "/home/jim/code/jimTools/rmd/005_prep_for_vignette.Rmd"

file  <- basename(file) 
dir <-"rmd"

rmarkdown::render(file,
                                    output_format="pdf_document",
                                    output_dir="~/Downloads/print_and_delete/",
                                    output_file="out.pdf")

jimTools::ren_pdf(file,dir)
jimTools::ren_github(file, dir)


jimrothstein/jimTools documentation built on Jan. 19, 2025, 3:23 p.m.