OHDSI Home | Forums | Wiki | Github

Invalid functions in cohortmethod.R file of an PLE package

Hi People,
In my quest to run the PLE package successfully, i came up with an invalid functions which gives error, function not found.

tcosList <- createTcos(outputFolder = outputFolder)

outcomesOfInterest <- getOutcomesOfInterest()

solution tried:- In my research, found that it is createTargetComparatorOutcomes function from cohortmethod package.
But, can somebody tell why the invalid function name came up by default in the R-study package?
Atlas Version–2.7.6
Error report:
Thread: Main
**Message: Error in createTcos(outputFolder = outputFolder) : could not find function “createTcos” **
Level: FATAL
Time: 2021-02-23 04:33:42

Stack trace:
1: (function () **
{
** logFatal(gsub("\n", " ", geterrmessage()))

})()

R version:
R version 3.5.3 (2019-03-11)

Platform:
x86_64-pc-linux-gnu

Attached base packages:
- stats
- graphics
- grDevices
- utils
- datasets
- methods
- base

Other attached packages:
- CohortMethod (4.0.1)
- FeatureExtraction (3.1.0)
- Cyclops (3.1.0)
- Andromeda (0.4.0)
- dplyr (1.0.4.9000)
- metforminErr1 (0.0.1)
- DatabaseConnector (3.0.0)
- devtools (2.3.2)
- usethis (2.0.0)

createTcos() is defined as part of the study package, not CohortMethod, as you can see in the PLE Skeleton. I don’t know why your code can’t find it. Perhaps something went wrong when building your study package?

t