* using log directory 'd:/Rcompile/CRANpkg/local/4.0/texPreview.Rcheck' * using R version 4.0.5 (2021-03-31) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'texPreview/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'texPreview' version '2.0.0' * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'texPreview' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [7s] OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... WARNING Warning: parse error in file 'texPreview-Ex.R': 179:10: unexpected '>' 178: 179: mtcars |> ^ * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [3s] ERROR Running examples in 'texPreview-Ex.R' failed The error most likely occurred in: > ### Name: tex_preview > ### Title: Render and Preview snippets of TeX in R Viewer > ### Aliases: tex_preview > > ### ** Examples > > data('iris') > if(interactive()){ + + # Raw TeX + + tex <- '\\begin{tabular}{llr} + \\hline + \\multicolumn{2}{c}{Item} \\\\ + \\cline{1-2} + Animal & Description & Price (\\$) \\\\ + \\hline + Gnat & per gram & 13.65 \\\\ + & each & 0.01 \\\\ + Gnu & stuffed & 92.50 \\\\ + Emu & stuffed & 33.33 \\\\ + Armadillo & frozen & 8.99 \\\\ + \\hline + \\end{tabular}' + + # knitr kable + + mtcars |> Error: unexpected '>' in: " mtcars |>" Execution halted * checking for unstated dependencies in 'tests' ... WARNING Warning: parse error in file 'testthat/test-viewer.R': 21:15: unexpected '>' 20: testthat::expect_output( 21: mtcars |> ^ * checking tests ... [35s] ERROR Running 'testthat.R' [35s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(texPreview) > test_check("texPreview") Error in parse(con, n = -1, srcfile = srcfile, encoding = "UTF-8") : test-viewer.R:21:15: unexpected '>' 20: testthat::expect_output( 21: mtcars |> ^ Calls: test_check ... doTryCatch -> lapply -> FUN -> source_file -> parse Execution halted * checking for unstated dependencies in vignettes ... NOTE Warning: parse error in file 'd:/RCompile/CRANpkg/lib/4.0/texPreview/doc/classes.R': /RCompile/CRANpkg/lib/4.0/texPreview/doc/classes.R:20:11: unexpected '>' 19: 20: iris_rev |> ^ Warning: parse error in file 'd:/RCompile/CRANpkg/lib/4.0/texPreview/doc/kable.R': /RCompile/CRANpkg/lib/4.0/texPreview/doc/kable.R:28:18: unexpected '>' 27: 28: kbl <- tex_file |> ^ Warning: parse error in file 'd:/RCompile/CRANpkg/lib/4.0/texPreview/doc/rmarkdown.R': /RCompile/CRANpkg/lib/4.0/texPreview/doc/rmarkdown.R:18:46: unexpected '>' 17: 18: knitr::kable(head(iris,5),format = 'latex') |> ^ * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [41s] WARNING Error(s) in re-building vignettes: --- re-building 'classes.Rmd' using rmarkdown Quitting from lines 32-39 (classes.Rmd) Error: processing vignette 'classes.Rmd' failed with diagnostics: :4:11: unexpected '>' 3: 4: iris_rev |> ^ --- failed re-building 'classes.Rmd' --- re-building 'engine.Rmd' using rmarkdown --- finished re-building 'engine.Rmd' --- re-building 'kable.Rmd' using rmarkdown Quitting from lines 44-48 (kable.Rmd) Error: processing vignette 'kable.Rmd' failed with diagnostics: :2:18: unexpected '>' 1: 2: kbl <- tex_file |> ^ --- failed re-building 'kable.Rmd' --- re-building 'rmarkdown.Rmd' using rmarkdown Quitting from lines 34-38 (rmarkdown.Rmd) Error: processing vignette 'rmarkdown.Rmd' failed with diagnostics: :2:46: unexpected '>' 1: 2: knitr::kable(head(iris,5),format = 'latex') |> ^ --- failed re-building 'rmarkdown.Rmd' --- re-building 'tests_and_coverage.Rmd' using rmarkdown --- finished re-building 'tests_and_coverage.Rmd' --- re-building 'tex_packages.Rmd' using rmarkdown --- finished re-building 'tex_packages.Rmd' --- re-building 'tikz.Rmd' using rmarkdown --- finished re-building 'tikz.Rmd' SUMMARY: processing the following files failed: 'classes.Rmd' 'kable.Rmd' 'rmarkdown.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... OK * DONE Status: 2 ERRORs, 3 WARNINGs, 1 NOTE