Hello Everyone,
I encountered an error while running Achilles using R code given here
I was running the below R in multithread mode as given below. Note the error happens only for multithread mode
library(Achilles)
achilles(connectionDetails,
cdmDatabaseSchema = "cdm",
resultsDatabaseSchema = "results",
scratchDatabaseSchema = "scratch",
vocabDatabaseSchema = "vocab",
numThreads = 3,
sourceName = "mysource", # this is my cdm_source_name field from cdm_source table
cdmVersion = "5.3.1",
runHeel = TRUE,
runCostAnalysis = FALSE)
However this resulted in an error as shown below
Error in $<-.data.frame
(*tmp*
, “runTime”, value = NA) :
replacement has 1 row, data has 0
Anyway I am sharing the full execution messages that was generated in R console
> achilles(connectionDetails, cdmDatabaseSchema = "cdm",
> + resultsDatabaseSchema = "results",scratchDatabaseSchema = "scratch",
> + vocabDatabaseSchema = "vocab",numThreads = 3,sourceName = "mysource",
> + cdmVersion = "5.3.1",runHeel = TRUE,runCostAnalysis = FALSE)
> Connecting using PostgreSQL driver
> Beginning multi-threaded execution
> Connecting using PostgreSQL driver
> |=================================================================================================================| 100%
> Executing SQL took 0.212 secs
> Dropping scratch Achilles tables from schema scratch
> |=================================================================================================================| 100%
> Temporary Achilles tables removed from schema scratch
> Executing multiple queries. This could take a while
> |=================================================================================================================| 100%
> Error in `$<-.data.frame`(`*tmp*`, "runTime", value = NA) :
> replacement has 1 row, data has 0
Can someone help me with this error?