Skip to content

Instantly share code, notes, and snippets.

@maurolepore
Last active October 6, 2021 17:18
Show Gist options
  • Save maurolepore/7fa488ff1238f19a5d0e26bfb1d61902 to your computer and use it in GitHub Desktop.
Save maurolepore/7fa488ff1238f19a5d0e26bfb1d61902 to your computer and use it in GitHub Desktop.

Here: https://git.io/JwO56

--

This call to reprex()

reprex::reprex(wd = ".",  devtools::check())

yields this output:

devtools::check()
#> ℹ Updating r2dii.plot documentation
#> ℹ Loading r2dii.plot
#> Writing NAMESPACE
#> Writing NAMESPACE
#> ── Building ────────────────────────────────────────────────────── r2dii.plot ──
#> Setting env vars:
#> • CFLAGS    : -Wall -pedantic
#> • CXXFLAGS  : -Wall -pedantic
#> • CXX11FLAGS: -Wall -pedantic
#> ────────────────────────────────────────────────────────────────────────────────
#>      checking for file ‘/home/mauro/git/r2dii.plot/DESCRIPTION’ ...  ✓  checking for file ‘/home/mauro/git/r2dii.plot/DESCRIPTION’
#>   ─  preparing ‘r2dii.plot’:
#>    checking DESCRIPTION meta-information ...  ✓  checking DESCRIPTION meta-information
#>   ─  checking for LF line-endings in source and make files and shell scripts
#>   ─  checking for empty or unneeded directories
#>    Removed empty directory ‘r2dii.plot/data-raw’
#>    Removed empty directory ‘r2dii.plot/vignettes’
#>   ─  building ‘r2dii.plot_0.1.0.9000.tar.gz’
#>      
#> ── Checking ────────────────────────────────────────────────────── r2dii.plot ──
#> Setting env vars:
#> • _R_CHECK_CRAN_INCOMING_USE_ASPELL_: TRUE
#> • _R_CHECK_CRAN_INCOMING_REMOTE_    : FALSE
#> • _R_CHECK_CRAN_INCOMING_           : FALSE
#> • _R_CHECK_FORCE_SUGGESTS_          : FALSE
#> • NOT_CRAN                          : true
#> ── R CMD check ─────────────────────────────────────────────────────────────────
#> * using log directory ‘/tmp/RtmpOJd152/r2dii.plot.Rcheck’
#> * using R version 4.1.1 (2021-08-10)
#> * using platform: x86_64-pc-linux-gnu (64-bit)
#> * using session charset: UTF-8
#> * using options ‘--no-manual --as-cran’
#> * checking for file ‘r2dii.plot/DESCRIPTION’ ... OK
#> * this is package ‘r2dii.plot’ version ‘0.1.0.9000’
#> * package encoding: UTF-8
#> * 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 executable files ... OK
#> * checking for hidden files and directories ... OK
#> * checking for portable file names ... OK
#> * checking for sufficient/correct file permissions ... OK
#> * checking serialization versions ... OK
#> * checking whether package ‘r2dii.plot’ can be installed ... OK
#> * checking installed package size ... OK
#> * checking package directory ... OK
#> * checking for future file timestamps ... OK
#> * checking DESCRIPTION meta-information ... OK
#> * checking top-level files ... NOTE
#> Non-standard files/directories found at top level:
#>   ‘dopey-nyala_reprex.R’ ‘dopey-nyala_reprex.spin.R’
#>   ‘dopey-nyala_reprex.spin.Rmd’
#> * 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 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 ... OK
#> * checking Rd files ... OK
#> * checking Rd metadata ... OK
#> * checking Rd line widths ... 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 ... OK
#> * checking contents of ‘data’ directory ... OK
#> * checking data for non-ASCII characters ... OK
#> * checking LazyData ... OK
#> * checking data for ASCII and uncompressed saves ... OK
#> * checking R/sysdata.rda ... OK
#> * checking examples ... ERROR
#> Running examples in ‘r2dii.plot-Ex.R’ failed
#> The error most likely occurred in:
#> > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
#> > ### Name: scale_colour_r2dii
#> > ### Title: Custom 2DII colour and fill scales
#> > ### Aliases: scale_colour_r2dii scale_color_r2dii scale_fill_r2dii
#> > 
#> > ### ** Examples
#> > 
#> > library(ggplot2, warn.conflicts = FALSE)
#> > 
#> > ggplot(data = mpg) +
#> +  geom_point(mapping = aes(x = displ, y = hwy, color = class)) +
#> +  scale_colour_r2dii()
#> > 
#> > ggplot(data = mpg) +
#> +  geom_histogram(mapping = aes(x = cyl, fill = class), position = "dodge") +
#> +  scale_fill_r2dii()
#> Error in scale_fill_r2dii() : could not find function "scale_fill_r2dii"
#> Execution halted
#> * checking for unstated dependencies in ‘tests’ ... OK
#> * checking tests ...
#>   Running ‘spelling.R’
#>   Comparing ‘spelling.Rout’ to ‘spelling.Rout.save’ ...9,12d8
#> < Potential spelling errors:
#> <   WORD            FOUND IN
#> < ScaleDiscrete   scale_colour_r2dii.Rd:23
#> <                 scale_colour_r2dii_tech.Rd:28
#>   Running ‘testthat.R’ [11s/11s]
#>  OK
#> * checking for non-standard things in the check directory ... OK
#> * checking for detritus in the temp directory ... OK
#> * DONE
#> 
#> Status: 1 ERROR, 1 NOTE
#> See
#>   ‘/tmp/RtmpOJd152/r2dii.plot.Rcheck/00check.log’
#> for details.
#> 
#> ── R CMD check results ────────────────────────────── r2dii.plot 0.1.0.9000 ────
#> Duration: 1m 9.7s
#> 
#> > checking examples ... ERROR
#>   Running examples in ‘r2dii.plot-Ex.R’ failed
#>   The error most likely occurred in:
#>   
#>   > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
#>   > ### Name: scale_colour_r2dii
#>   > ### Title: Custom 2DII colour and fill scales
#>   > ### Aliases: scale_colour_r2dii scale_color_r2dii scale_fill_r2dii
#>   > 
#>   > ### ** Examples
#>   > 
#>   > library(ggplot2, warn.conflicts = FALSE)
#>   > 
#>   > ggplot(data = mpg) +
#>   +  geom_point(mapping = aes(x = displ, y = hwy, color = class)) +
#>   +  scale_colour_r2dii()
#>   > 
#>   > ggplot(data = mpg) +
#>   +  geom_histogram(mapping = aes(x = cyl, fill = class), position = "dodge") +
#>   +  scale_fill_r2dii()
#>   Error in scale_fill_r2dii() : could not find function "scale_fill_r2dii"
#>   Execution halted
#> 
#> > checking top-level files ... NOTE
#>   Non-standard files/directories found at top level:
#>     ‘dopey-nyala_reprex.R’ ‘dopey-nyala_reprex.spin.R’
#>     ‘dopey-nyala_reprex.spin.Rmd’
#> 
#> 1 error x | 0 warnings ✓ | 1 note x
#> Error: R CMD check found ERRORs

Created on 2021-10-06 by the reprex package (v2.0.1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment