Skip to content

runAnalysis csv file location #18

Description

@AlexanderLyNL

jaspTools v 1.4.2

When making the unit test for reliability (jasp-stats/jaspReliability#27) I noticed that it doesn't search for the csv file in the subfolder

 /tests/testthat/

anymore. This used to be the case. In R it's a bit of a nuisance to get enter the whole path. Would it be possible to include the subfolder in the search ptah when running runAnalysis?

options <- analysisOptions("reliabilityUniDimFrequentist")
options$omegaScale <- TRUE
options$alphaScale <- TRUE
options$lambda2Scale <- TRUE
options$lambda6Scale <- TRUE
options$meanScale <- TRUE
options$omegaItem <- TRUE
options$alphaItem <- TRUE
options$lambda2Item <- TRUE
options$lambda6Item <- TRUE
options$itemRestCor <- TRUE
options$itemMean <- TRUE
options$itemSd <- TRUE
options$omegaAnalytic <- TRUE

options$variables <- c(paste("Question", c(1, 4:8), sep="_0"), paste("Question", 10, sep="_"))
set.seed(1)
results <- jaspTools::runAnalysis("reliabilityUniDimFrequentist", 
                                  paste0(packagePath, "/tests/testthat/Reliability.csv"), options)

Activity

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

Metadata

Metadata

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