Skip to content

Error in vapply(featureCorrDF, nrow, 0): values must be length 1, but FUN(X[[1]]) result is length 0 #1

Description

@EperLuo

Hi! I was trying to reproduce the evaluation results in the readme file, and I followed exactly the guidance said:

path <- system.file("extdata", "real.rds", package="SimBench")
real <- readRDS(path)

path <- system.file("extdata", "sim.rds", package="SimBench")
sim <- readRDS(path)

parameter_result <- eval_parameter(real = real, sim = sim, type = "count" , method = "samplemethod")

but then I run into this bug:

Warning message in mclapply(sim_list, function(x) {:
“all scheduled cores encountered errors in user code”
Error in vapply(featureCorrDF, nrow, 0): values must be length 1,
but FUN(X[[1]]) result is length 0
Traceback:

  1. eval_parameter(real = real, sim = sim, type = "count", method = "samplemethod")
  2. countsim_eval(sim_list)
  3. calculateFeatureCorrs(sim_list = obj, ncore = ncore)
  4. vapply(featureCorrDF, nrow, 0)

I have installed all the required dependencies, but I am not very familiar with R and not sure if the versions of these dependencies are all right.

Any help would be much appreciated!~

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions