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

R CMD check failures #7

Open
hadley opened this issue Sep 30, 2015 · 1 comment
Open

R CMD check failures #7

hadley opened this issue Sep 30, 2015 · 1 comment

Comments

@hadley
Copy link

hadley commented Sep 30, 2015

With dev testthat, I see

checking examples ... ERROR
Running examples in ‘repra-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: calculate_elcc
> ### Title: Calculate effective load carrying capability (ELCC)
> ### Aliases: calculate_elcc
> 
> ### ** Examples
> 
> # Create outage table with 200 5-MW units
> gens <- data.frame(Capacity = rep(5, 200),
+                    EFOR = rep(0.08, 200))
> out.table <- outage_table(gens)
> 
> # Create random load and wind data and format
> tdata <- data.frame(Time = 1:8760,
+                     Load = runif(8760, 450, 850),
+                     Wind = runif(8760, 0, 100),
+                     Wind2 = runif(8760, 0, 200))
> td <- format_timedata(tdata)
Error in `[.data.frame`(data3, , list(Value = sum(Value)), by = cols.temp) : 
  unused argument (by = cols.temp)
Calls: format_timedata -> [ -> [.data.frame
Execution halted
checking tests ... ERROR
Running the tests in ‘tests/test-all.R’ failed.
Last 13 lines of output:
  6: compare(actual, expected, ...) at /Users/hadley/Documents/devtools/testthat/R/expectations-equality.R:61
  7: format_timedata(tdata) at /Users/hadley/Documents/devtools/testthat/R/compare.r:10
  8: data3[, list(Value = sum(Value)), by = cols.temp]
  9: `[.data.frame`(data3, , list(Value = sum(Value)), by = cols.temp)

  testthat results ================================================================
  OK: 9 SKIPPED: 0 FAILED: 3
  1. Error: timedata format 
  2. Error: timedata column names 
  3. Error: WinProb value set to 1 

  Error: testthat unit tests failed
  Execution halted
checking re-building of vignette outputs ... NOTE
Error in re-building vignettes:
  ...

Attaching package: 'dplyr'

The following objects are masked from 'package:stats':

    filter, lag

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union

Quitting from lines 61-65 (repra.Rmd) 
Error: processing vignette 'repra.Rmd' failed with diagnostics:
unused argument (by = cols.temp)
Execution halted

DONE
Status: 2 ERRORs, 1 NOTE
@Aishwarya1602
Copy link

i get the following error when i tried the ELCC program in jupyter

Error in library(NREL/repra): 'package' must be of length 1
Traceback:

  1. library(NREL/repra)
  2. stop("'package' must be of length 1")

can we run the code directly in jupyter notebook? is there something else that needs to be installed?

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

2 participants