ohdsi-studies / Covid19EstimationHydroxychloroquine2

Retrospective, real-world, observational study to estimate the population-level effects of hydroxychloroquine among patients with rheumatoid arthritis on select psychiatric and influenza outcomes. Designed during the OHDSI community COVID-19 virtual study-a-thon (March 26-29) to inform healthcare decision-making in response to the current global pandemic.
1 stars 1 forks source link

Error caused by system.file() call in MetaAnalysis.R #2

Open ablack3 opened 4 years ago

ablack3 commented 4 years ago

When running this study I encountered the error

Warning: file("") only supports open = "w+" and open = "w+b": using the former
Error in read.table(file = file, header = header, sep = sep, quote = quote,  : 
  no lines available in input

This error is caused by

https://github.com/ohdsi-studies/Covid19EstimationHydroxychloroquine2/blob/9d5ef0eef55802a9c1832538981c48d656ea27c6/R/MetaAnalysis.R#L219

I think this line should be changed to

pathToCsv <- system.file("settings", "NegativeControls.csv", package = "Covid19EstimationHydroxychloroquine2", mustWork = T)