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

Error when trying to run the first specific example #22

Open
yzfranci opened this issue Mar 13, 2024 · 0 comments
Open

Error when trying to run the first specific example #22

yzfranci opened this issue Mar 13, 2024 · 0 comments

Comments

@yzfranci
Copy link

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

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