ipeadata-lab / ipeaplot

ipeaplot: criando graficos no padrão editorial do Ipea
https://ipeadata-lab.github.io/ipeaplot/
Other
1 stars 0 forks source link

R-CMD-check: All jobs have failed #53

Closed cavalcanti1985 closed 3 months ago

cavalcanti1985 commented 3 months ago

@PedroJorge7, por favor revise os exemplos das funções para resolver estes erros no check:

Run r-lib/actions/check-r-package@v2
Run ## --------------------------------------------------------------------
── R CMD build ─────────────────────────────────────────────────────────────────
* checking for file '.../DESCRIPTION' ... OK
* preparing 'ipeaplot':
* checking DESCRIPTION meta-information ... OK
* installing the package to build vignettes
* creating vignettes ... OK
* checking for LF line-endings in source and make files and shell scripts
* checking for empty or unneeded directories
Omitted 'LazyData' from DESCRIPTION
* building 'ipeaplot_0.0.1.tar.gz'

── R CMD check ─────────────────────────────────────────────────────────────────
* using log directory '/home/runner/work/ipeaplot/ipeaplot/check/ipeaplot.Rcheck'
* using R version 4.3.3 (2024-02-29)
* using platform: x86_64-pc-linux-gnu (64-bit)
* R was compiled by
    gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
    GNU Fortran (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
* running under: Ubuntu 22.04.4 LTS
* using session charset: UTF-8
* using options '--no-manual --as-cran'
* checking for file 'ipeaplot/DESCRIPTION' ... OK
* checking extension type ... Package
* this is package 'ipeaplot' version '0.0.1'
* 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 'ipeaplot' can be installed ... OK
* checking installed package size ... OK
* checking package directory ... OK
* checking for future file timestamps ... 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 startup messages can be suppressed ... 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 installed files from 'inst/doc' ... OK
* checking files in 'vignettes' ... OK
* checking examples ... ERROR
Error: Running examples in 'ipeaplot-Ex.R' failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: save_eps
> ### Title: Save the chart in Eps format
> ### Aliases: save_eps
> 
> ### ** Examples
> 
> # Creating theme for ggplot2 graph using default arguments
> fig_raw <- ggplot() +
+   geom_col(data = mtcars, aes(x = hp , y = mpg, fill = cyl)) +
+   theme_ipea()
Error: Error in ggplot() : could not find function "ggplot"
Execution halted
* checking for unstated dependencies in vignettes ... OK
* checking package vignettes in 'inst/doc' ... OK
* checking re-building of vignette outputs ... OK
* checking for non-standard things in the check directory ... OK
* checking for detritus in the temp directory ... OK
* DONE

Status: 1 ERROR
See
  '/home/runner/work/ipeaplot/ipeaplot/check/ipeaplot.Rcheck/00check.log'
for details.

── R CMD check results ───────────────────────────────────── ipeaplot 0.0.1 ────
Duration: 28.7s

❯ checking examples ... ERROR
  Running examples in 'ipeaplot-Ex.R' failed
  The error most likely occurred in:

  > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
  > ### Name: save_eps
  > ### Title: Save the chart in Eps format
  > ### Aliases: save_eps
  > 
  > ### ** Examples
  > 
  > # Creating theme for ggplot2 graph using default arguments
  > fig_raw <- ggplot() +
  +   geom_col(data = mtcars, aes(x = hp , y = mpg, fill = cyl)) +
  +   theme_ipea()
  Error in ggplot() : could not find function "ggplot"
  Execution halted

1 error ✖ | 0 warnings ✔ | 0 notes ✔
Error: Error: R CMD check found ERRORs
Execution halted
Error: Process completed with exit code 1.
Run ## --------------------------------------------------------------------
Show testthat output
Run actions/upload-artifact@v4
With the provided path, there will be 102 files uploaded
Artifact name is valid!
Root directory input is valid!
Beginning upload of artifact content to blob storage
Uploaded bytes 5663902
Finished uploading artifact content to blob storage!
SHA256 hash of uploaded artifact zip is fc666cc9406df9bf66a7f96201f2379771d94474768e0def1b2282ee77d8a4db
Finalizing artifact upload
Artifact Linux-X64-roldrel-1-4-results.zip successfully finalized. Artifact ID 1380713372
Artifact Linux-X64-roldrel-1-4-results has been successfully uploaded! Final size is 5663902 bytes. Artifact ID is 1380713372
Artifact download URL: https://github.com/ipeadata-lab/ipeaplot/actions/runs/8536981378/artifacts/1380713372
PedroJorge7 commented 3 months ago

Corrigido no último commit (https://github.com/ipeadata-lab/ipeaplot/commit/d52f9119575dfd61803fb1128da3c677e943a3e3)