Model Analysis Template (tidymodels) . I made a few minor edits to get this template started. Compiles great as HTML. Does not compile as PDF. downloaded tinytex and tried again. still does not compile. This was just a template that I wanted to start to use. Error Screenshot from RStudio attached.
Created a New R Markdown in Rstudio.
- Loaded Template: Model Analysis {tidymodels}
- Made some minor edits to headings and text. Not to the code it comes with.
- Compiles just fine (multiple times) as HTML. Compiles well as a WORD document as well. Problem is only in compiling as PDF.
- Changed Output Options to PDF.
Hangs up for quite a while and then gives an error message
> output file: 2023-rcDEA-RMDTEST.knit.md
LaTeX Error: Unicode character ^^[ (U+001B)
not set up for use with LaTeX.
Error: LaTeX failed to compile 2023-rcDEA-RMDTEST.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See 2023-rcDEA-RMDTEST.log for more info.
Execution halted
Now I installed tinytext and retried. Again I get an error:
> set.seed(234)
> penguin_folds <- vfold_cv(penguin_train, strata = sex)
> penguin_folds
# 10-fold cross-validation using stratification
> install.packages("tinytex")
Installing package into ‘C:/Users/sbalakrishnan/AppData/Local/R/win-library/4.2’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/tinytex_0.45.zip'
Content type 'application/zip' length 136103 bytes (132 KB)
downloaded 132 KB
package ‘tinytex’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\sbalakrishnan\AppData\Local\Temp\Rtmp29YPNr\downloaded_packages
>
- Not sure if I should give up on this Template?
- Compiles well as a WORD document as well. Problem is only in compiling as PDF.