When I run this code above, I’ve got this error below.
Summarizing results
|====================================================================================================================================| 100%
Computing covariate balance
Error in if (!file.exists(file)) stop("Cannot find file ", file) :
argument is of length zero
In addition: Warning message:
Unknown or uninitialised column: cohortMethodDataFolder.
Warning message:
In ParallelLogger::unregisterLogger(“DEFAULT”) :
Could not find logger DEFAULT
And also when set maxCore = parallel::detectCores(), I’ve got error below too…
Error in ParallelLogger::clusterApply(cluster, subset, computeCovariateBalance, :
Error(s) when calling function ‘fun’, see earlier messages for details
And also there are few warnings below (Set maxCores=1) after I install latest version of ParellelLogger.
Summarizing results
|====================================================================================================================================| 100%
Computing covariate balance
Error in if (!file.exists(file)) stop("Cannot find file ", file) :
argument is of length zero
In addition: Warning message:
Unknown or uninitialised column: cohortMethodDataFolder.
Warning message:
In ParallelLogger::unregisterLogger(“DEFAULT”) :
Could not find logger DEFAULT
When I run this code, the error always occured when it computing covariate balance…Seems like there are problem or probably the study design have problem but i don’t really think so…quite hard…
My best guess is there are incompatibility issues between packages. Which study package are you running? Which version of CohortMethod?
I highly recommend using the latest skeleton, which can be hydrated using the latest Hydra, as described here. This skeleton uses renv to make sure all correct versions are installed.
The study packages generated by ATLAS use skeletons and Hydra from several years ago. I don’t know why they’re not updating ATLAS.
I use PLE study package generated by ATLAS. I used 4.2.1 version of CohortMethod. All results above is the result of 4.0.5 version of R and now I’m trying to upgrade latest version of R . Thank you @schuemie ! I’ll let you know the progressing!
Assumes you’ve already uploaded your study package to ohdsi-studies. Try running renv::init() to start using the lock file locally (if there’s a file called ‘renv.lock’ in your folder)
So, I changed the option like this verifyDependencies = FALSE, and run execute().
Unfortunately, other error has occurred…
*** Fitting outcome models for other outcomes ***
Removing subjects with prior outcomes (if any)
Removing subjects with less than 1 day(s) at risk (if any)
Using prior: None
Warning: BLR gradient is ill-conditioned
Enforcing convergence!
Using prior: None
Warning: BLR gradient is ill-conditioned
Enforcing convergence!
Using 1 thread(s)
Using 1 thread(s)
An error report has been created at C:***/errorReportR.txt
Error occurred in coef.cyclopsFit(fit) :
Cyclops estimation is null; suspect that estimation did not converge.
Is there a problem in CohortMethod() which the version of it is 4.2.2.? Or another problem that I miss?
Ah, sorry for the misunderstanding. Depending on which version of R you’re running you should run specific versions of RTools. You should only use RTools 42 if you’re running R 4.2.