CRAN Package Check Results for Package knitr

Last updated on 2018-10-24 05:49:47 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.20 8.17 71.96 80.13 OK
r-devel-linux-x86_64-debian-gcc 1.20 6.73 57.53 64.26 OK
r-devel-linux-x86_64-fedora-clang 1.20 103.86 OK
r-devel-linux-x86_64-fedora-gcc 1.20 99.48 OK
r-devel-windows-ix86+x86_64 1.20 66.00 87.00 153.00 ERROR
r-patched-linux-x86_64 1.20 8.16 68.02 76.18 OK
r-patched-solaris-x86 1.20 124.50 OK
r-release-linux-x86_64 1.20 7.07 68.32 75.39 NOTE
r-release-windows-ix86+x86_64 1.20 48.00 140.00 188.00 OK
r-release-osx-x86_64 1.20 OK
r-oldrel-windows-ix86+x86_64 1.20 23.00 156.00 179.00 OK
r-oldrel-osx-x86_64 1.20 OK

Check Details

Version: 1.20
Check: examples
Result: ERROR
    Running examples in 'knitr-Ex.R' failed
    The error most likely occurred in:
    
    > ### Name: Sweave2knitr
    > ### Title: Convert Sweave to knitr documents
    > ### Aliases: Sweave2knitr
    >
    > ### ** Examples
    >
    > Sweave2knitr(text = "<<echo=TRUE>>=") # this is valid
    [1] "<<echo=TRUE>>="
    > Sweave2knitr(text = "<<png=true>>=") # dev='png'
    capitalizing true/false to TRUE/FALSE:
     * png=true
    replacing pdf/jpeg/png/tikz=TRUE with dev='pdf'/'jpeg'/'png'/'tikz':
     * png=TRUE
    [1] "<<dev='png'>>="
    > Sweave2knitr(text = "<<eps=TRUE, pdf=FALSE, results=tex, width=5, prefix.string=foo>>=")
    removing pdf/jpeg/png/eps/tikz=FALSE:
     * eps=TRUE, pdf=FALSE, results=tex, width=5, prefix.string=foo
    replacing eps=TRUE with dev='postscript':
     * eps=TRUE, , results=tex, width=5, prefix.string=foo
    replacing results=tex with results=asis:
     * dev='postscript', , results=tex, width=5, prefix.string=foo
    quoting the results option:
     * dev='postscript', , results=asis, width=5, prefix.string=foo
    replacing width/height with fig.width/fig.height:
     * dev='postscript', , results='asis', width=5, prefix.string=foo
    replacing prefix.string=foo with fig.path='foo':
     * dev='postscript', , results='asis', fig.width=5,
     prefix.string=foo
    [1] "<<dev='postscript', results='asis', fig.width=5, fig.path='foo'>>="
    > Sweave2knitr(text = "<<,png=false,fig=TRUE>>=")
    capitalizing true/false to TRUE/FALSE:
     * ,png=false,fig=TRUE
    removing the unnecessary option fig=TRUE:
     * ,png=FALSE,fig=TRUE
    removing pdf/jpeg/png/eps/tikz=FALSE:
     * ,png=FALSE,
    [1] "<<>>="
    > Sweave2knitr(text = "\\SweaveOpts{echo=false}")
    capitalizing true/false to TRUE/FALSE:
     * echo=false
    changing \SweaveOpts{} to opts_chunk$set():
     * \SweaveOpts{echo=false}
    [1] "\n<<include=FALSE>>=\nlibrary(knitr)\nopts_chunk$set(\necho=FALSE\n)\n@\n"
    > Sweave2knitr(text = "\\SweaveInput{hello.Rnw}")
    replacing \SweaveInput{...} with <<child='...'>>=:
     * \SweaveInput{hello.Rnw}
    [1] "\n<<'child-hello.Rnw', child='hello.Rnw'>>=\n@\n"
    > # Sweave example in utils
    > testfile = system.file("Sweave", "Sweave-test-1.Rnw", package = "utils")
    > Sweave2knitr(testfile, output = "Sweave-test-knitr.Rnw")
    capitalizing true/false to TRUE/FALSE:
     * fig=true
    removing the unnecessary option fig=TRUE:
     * fig=TRUE
     * fig=TRUE
    quoting the results option:
     * results=hide
    removing options 'print', 'term', 'prefix':
     * print=TRUE
     * echo=TRUE,print=TRUE
    capitalizing true/false to TRUE/FALSE:
     * echo=true
    changing \SweaveOpts{} to opts_chunk$set():
     * \SweaveOpts{echo=FALSE}
     * \SweaveOpts{echo=true}
    removing extra lines (#n shows line numbers):
     * (#69) @
    > knit("Sweave-test-knitr.Rnw") # or knit2pdf() directly
    
    
    processing file: Sweave-test-knitr.Rnw
     ordinary text without R code
    
    label: unnamed-chunk-1 (with options)
    List of 1
     $ include: logi FALSE
    
     ordinary text without R code
    
    label: unnamed-chunk-2
    label: unnamed-chunk-3 (with options)
    List of 1
     $ results: chr "hide"
    
     ordinary text without R code
    
    label: unnamed-chunk-4 (with options)
    List of 1
     $ echo: logi TRUE
    
    Quitting from lines 30-33 (Sweave-test-knitr.Rnw)
    Error in `[<-.data.frame`(`*tmp*`, idx, 1, value = "\\hlstd{") :
     replacement has 1 row, data has 0
    Calls: knit ... <Anonymous> -> cbind -> merge_cmd -> [<- -> [<-.data.frame
    Execution halted
Flavor: r-devel-windows-ix86+x86_64

Version: 1.20
Check: tests
Result: ERROR
     Running 'run-all.R' [5s]
    Running the tests in 'tests/run-all.R' failed.
    Complete output:
     > library(testit)
     > test_pkg("knitr")
    
    
     Quitting from lines 5-6 ()
     Error from `[<-`(`*tmp*`, idx, 1, value = "\\hlstd{")
     Error in `[<-.data.frame`(`*tmp*`, idx, 1, value = "\\hlstd{") :
     replacement has 1 row, data has 0
     Calls: test_pkg ... <Anonymous> -> cbind -> merge_cmd -> [<- -> [<-.data.frame
     In addition: Warning messages:
     1: In write_bib(pkgs, tempfile(), tweak = FALSE) :
     package(s) KernSmooth, boot, class, cluster, foreign, nnet, rpart, spatial, survival not found
     2: In write_bib(pkgs, tweak = TRUE) :
     package(s) KernSmooth, boot, class, cluster, foreign, nnet, rpart, spatial, survival not found
     Execution halted
Flavor: r-devel-windows-ix86+x86_64

Version: 1.20
Check: package dependencies
Result: NOTE
    Packages suggested but not available for checking: ‘rgl’ ‘htmlwidgets’
Flavor: r-release-linux-x86_64