Skip to content

Error when trying to run the first specific example #22

@yzfranci

Description

@yzfranci

Hi,
I'm trying to use MINOTAUR for the first time, and I immediatly ran into an error while running the following example:

observations <- 1000
obsID <- seq(1, observations, by=1)
var1 <- rnorm(observations)
var2 <- rnorm(observations)
var3 <- rnorm(observations)
var4 <- rnorm(observations)
var5 <- rnorm(observations)
allVar <- cbind(obsID, var1, var2, var3, var4, var5)
columns <- 2:6

Md <- Mahalanobis(dfv=allVar, column.nums=columns)

which gave me this message:

Error in if (class(try(dfv[, column.nums], silent = TRUE)) == "try-error") stop("column.nums must contain valid indexes for choosing columns in dfv") :
the condition has length > 1

My R version is 4.2.1 (2022-06-23), and I am not sure if that matters but I had to install MINOTAUR with build_vignettes = FALSE, because I would get this error message otherwise:

E creating vignettes (29.1s)
--- re-building ‘MINOTAUR.Rmd’ using rmarkdown

Quitting from lines 124-149 [unnamed-chunk-4] (MINOTAUR.Rmd)
Error: processing vignette 'MINOTAUR.Rmd' failed with diagnostics:
the condition has length > 1
--- failed re-building ‘MINOTAUR.Rmd’

SUMMARY: processing the following file failed:
‘MINOTAUR.Rmd’

Error: Vignette re-building failed.
Execution halted
Error: Failed to install 'MINOTAUR' from GitHub:

Thanks for your help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions