extras/createLockfiles.R

# code to create lockfiles

devtools::install_github('ohdsi/OhdsiRTools')

OhdsiRTools::createRenvLockFile(rootPackage = "CovCoagEmaPrediction",
                                includeRootPackage = FALSE,
                                additionalRequiredPackages = c( "keras", "tensorflow", "plyr", "survAUC", "officer",
                                                               "diagram", "xgboost", 
                                                               "DT", "shiny", "shinydashboard", "shinycssloaders",
                                                                "htmlwidgets", "shinyWidgets", "plotly",
                                                               "VennDiagram", "htmltools",
                                                               "gridExtra", 
                                                               "ggplot2", "reshape2")
                                )


args <- c('env', 'export','-n','r-reticulate', '--no-builds',
          '|', 'findstr', '-v', '"prefix"' ,'> pyEnvironment.yml')
system2(reticulate::conda_binary(), args, stdout = TRUE)
mi-erasmusmc/CovCoagEmaPrediction documentation built on Dec. 21, 2021, 5:54 p.m.