CRAN Package Check Results for Package powergrid

Last updated on 2026-05-11 06:48:58 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.5.0 2.46 96.45 98.91 OK
r-devel-linux-x86_64-debian-gcc 0.5.0 1.95 41.54 43.49 ERROR
r-devel-linux-x86_64-fedora-clang 0.5.0 5.00 166.34 171.34 OK
r-devel-linux-x86_64-fedora-gcc 0.5.0 169.83 OK
r-devel-windows-x86_64 0.5.0 4.00 77.00 81.00 ERROR
r-patched-linux-x86_64 0.5.0 2.85 89.09 91.94 OK
r-release-linux-x86_64 0.5.0 2.43 89.82 92.25 OK
r-release-macos-arm64 0.5.0 1.00 27.00 28.00 OK
r-release-macos-x86_64 0.5.0 2.00 100.00 102.00 OK
r-release-windows-x86_64 0.5.0 5.00 105.00 110.00 OK
r-oldrel-macos-arm64 0.5.0 OK
r-oldrel-macos-x86_64 0.5.0 2.00 123.00 125.00 OK
r-oldrel-windows-x86_64 0.5.0 3.00 122.00 125.00 OK

Check Details

Version: 0.5.0
Check: examples
Result: ERROR Running examples in ‘powergrid-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: AddExample > ### Title: Add an example to an existing PowerPlot or GridPlot > ### Aliases: AddExample > > ### ** Examples > > > ## For more examples, see ?PowerPlot > > ## Set up a grid of n, delta and sd: > sse_pars = list( + n = seq(from = 10, to = 60, by = 4), + delta = seq(from = 0.5, to = 1.5, by = 0.1), # effect size + sd = seq(.1, 1.1, .2)) # Standard deviation > ## Define a power function using these parameters: > PowFun <- function(n, delta, sd){ # power for a t-test at alpha = .05 + ptt = power.t.test(n = n/2, delta = delta, sd = sd, + sig.level = 0.05) + return(ptt$power) + } > ## Evaluate PowFun across the grid defined by sse_pars: > power_array = PowerGrid(pars = sse_pars, fun = PowFun, n_iter = NA) > > ## ====================== > ## PowerPlot > ## ====================== > PowerPlot(power_array, + slicer = list(sd = .7), + ) > AddExample(power_array, + slicer = list(sd = .7), # be sure to cut out the same plain as above + example = list(delta = .9), + target_value = .9, + col = 'blue') > AddExample(power_array, + slicer = list(sd = .7), + example = list(delta = c(.7, 1)), # multiple examples + target_value = .9, + col = 'yellow') > ## Careful, you can move the slicer argument to example: > AddExample(power_array, + example = list(delta = 1.2, sd = .7), # delta (x-axis) first + target_value = .9, + col = 'green') > ## Careful, because you can put the wrong value on x-axis! > AddExample(power_array, + example = list(sd = .7, delta = 1.2), # sd first?! + target_value = .9, + col = 'red') > > ## ====================== > ## GridPlot > ## ====================== > GridPlot(power_array, target_value = .9) Warning: The target value wasn't achieved at any of the parameter combinations in x. Therefore, no lines can be drawn. Error in 1:ncol(y_rec) : argument of length 0 Calls: GridPlot Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.5.0
Check: re-building of vignette outputs
Result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘powergrid.Rmd’ using rmarkdown Quitting from powergrid.Rmd:212-216 [GridPlot] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/rlang_error> Error in `1:ncol(y_rec)`: ! argument of length 0 --- Backtrace: ▆ 1. └─powergrid::GridPlot(...) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'powergrid.Rmd' failed with diagnostics: argument of length 0 --- failed re-building ‘powergrid.Rmd’ SUMMARY: processing the following file failed: ‘powergrid.Rmd’ Error: Vignette re-building failed. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.5.0
Check: examples
Result: ERROR Running examples in 'powergrid-Ex.R' failed The error most likely occurred in: > ### Name: AddExample > ### Title: Add an example to an existing PowerPlot or GridPlot > ### Aliases: AddExample > > ### ** Examples > > > ## For more examples, see ?PowerPlot > > ## Set up a grid of n, delta and sd: > sse_pars = list( + n = seq(from = 10, to = 60, by = 4), + delta = seq(from = 0.5, to = 1.5, by = 0.1), # effect size + sd = seq(.1, 1.1, .2)) # Standard deviation > ## Define a power function using these parameters: > PowFun <- function(n, delta, sd){ # power for a t-test at alpha = .05 + ptt = power.t.test(n = n/2, delta = delta, sd = sd, + sig.level = 0.05) + return(ptt$power) + } > ## Evaluate PowFun across the grid defined by sse_pars: > power_array = PowerGrid(pars = sse_pars, fun = PowFun, n_iter = NA) > > ## ====================== > ## PowerPlot > ## ====================== > PowerPlot(power_array, + slicer = list(sd = .7), + ) > AddExample(power_array, + slicer = list(sd = .7), # be sure to cut out the same plain as above + example = list(delta = .9), + target_value = .9, + col = 'blue') > AddExample(power_array, + slicer = list(sd = .7), + example = list(delta = c(.7, 1)), # multiple examples + target_value = .9, + col = 'yellow') > ## Careful, you can move the slicer argument to example: > AddExample(power_array, + example = list(delta = 1.2, sd = .7), # delta (x-axis) first + target_value = .9, + col = 'green') > ## Careful, because you can put the wrong value on x-axis! > AddExample(power_array, + example = list(sd = .7, delta = 1.2), # sd first?! + target_value = .9, + col = 'red') > > ## ====================== > ## GridPlot > ## ====================== > GridPlot(power_array, target_value = .9) Warning: The target value wasn't achieved at any of the parameter combinations in x. Therefore, no lines can be drawn. Error in 1:ncol(y_rec) : argument of length 0 Calls: GridPlot Execution halted Flavor: r-devel-windows-x86_64

Version: 0.5.0
Check: re-building of vignette outputs
Result: ERROR Error(s) in re-building vignettes: --- re-building 'powergrid.Rmd' using rmarkdown Quitting from powergrid.Rmd:212-216 [GridPlot] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/rlang_error> Error in `1:ncol(y_rec)`: ! argument of length 0 --- Backtrace: ▆ 1. └─powergrid::GridPlot(...) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'powergrid.Rmd' failed with diagnostics: argument of length 0 --- failed re-building 'powergrid.Rmd' SUMMARY: processing the following file failed: 'powergrid.Rmd' Error: Vignette re-building failed. Execution halted Flavor: r-devel-windows-x86_64

mirror server hosted at Truenetwork, Russian Federation.