Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRAN submit errors #108

Closed
choonghyunryu opened this issue Dec 16, 2023 · 1 comment
Closed

CRAN submit errors #108

choonghyunryu opened this issue Dec 16, 2023 · 1 comment

Comments

@choonghyunryu
Copy link
Owner

Thanks, we see without installed suggested packages and the --run-donttest flag:




* checking examples ... [58s] ERROR
Running examples in 'dlookr-Ex.R' failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: plot.bins
> ### Title: Visualize Distribution for a "bins" object
> ### Aliases: plot.bins
>
> ### ** Examples
>
> # Generate data for the example
> ## No test:
> heartfailure2 <- heartfailure
> heartfailure2[sample(seq(NROW(heartfailure2)), 20), "platelets"] <- NA
>
> # Binning the platelets variable. default type argument is "quantile"
> bin <- binning(heartfailure2$platelets, nbins = 5)
> plot(bin)
>
> # Using another type arguments
> bin <- binning(heartfailure2$platelets, nbins = 5, type = "equal")
> plot(bin)
>
> bin <- binning(heartfailure2$platelets, nbins = 5, type = "pretty")
> plot(bin)
>
> bin <- binning(heartfailure2$platelets, nbins = 5, type = "kmeans")
Warning: Package "classInt" needed for this function to work. Please install it.
> plot(bin)
Warning in min(x) : no non-missing arguments to min; returning Inf
Warning in max(x) : no non-missing arguments to max; returning -Inf
Warning in min(x) : no non-missing arguments to min; returning Inf
Warning in max(x) : no non-missing arguments to max; returning -Inf
Error in plot.window(...) : need finite 'xlim' values
Calls: plot -> plot.default -> localWindow -> plot.window
Execution halted



* checking re-building of vignette outputs ... [28s] ERROR
Error(s) in re-building vignettes:
--- re-building 'EDA.Rmd' using rmarkdown

Quitting from lines 625-641 [dbi_table] (EDA.Rmd)
Error: processing vignette 'EDA.Rmd' failed with diagnostics:
trying to use CRAN without setting a mirror
--- failed re-building 'EDA.Rmd'

--- re-building 'diagonosis.Rmd' using rmarkdown

Quitting from lines 534-550 [dbi_table] (diagonosis.Rmd)
Error: processing vignette 'diagonosis.Rmd' failed with diagnostics:
trying to use CRAN without setting a mirror
--- failed re-building 'diagonosis.Rmd'

--- re-building 'introduce.Rmd' using rmarkdown
--- finished re-building 'introduce.Rmd'

--- re-building 'transformation.Rmd' using rmarkdown

Quitting from lines 150-162 [imputate_na2] (transformation.Rmd)
Error: processing vignette 'transformation.Rmd' failed with diagnostics:
there is no package called 'ranger'
--- failed re-building 'transformation.Rmd'

SUMMARY: processing the following files failed:
 'EDA.Rmd' 'diagonosis.Rmd' 'transformation.Rmd'

Error: Vignette re-building failed.
Execution halted

Please fix and resubmit.

Best,
Uwe Ligges
@choonghyunryu
Copy link
Owner Author

The problem stems from the "Suggests" package. As CRAN's policies have gotten stricter, dlookr has become a bit more difficult to manage, because it uses a lot of 3rd-party packages.

I fixed the problematic chunk of code in the vignettes with eval=FALSE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant