Create 0-data_prep.R
This commit is contained in:
parent
dbc6b36610
commit
8b807ba7be
1 changed files with 31 additions and 0 deletions
31
ML/0-data_prep.R
Normal file
31
ML/0-data_prep.R
Normal file
|
@ -0,0 +1,31 @@
|
|||
rm(list = ls(all.names = TRUE)) # Clear the memory of variables from previous run.
|
||||
cat("\014") # Clear the console
|
||||
|
||||
|
||||
# load packages -----------------------------------------------------------
|
||||
|
||||
box::use(
|
||||
magrittr[`%>%`]
|
||||
,RSQLite
|
||||
,DBI[dbConnect,dbDisconnect]
|
||||
,here[here]
|
||||
)
|
||||
|
||||
# globals -----------------------------------------------------------------
|
||||
|
||||
db <- dbConnect(
|
||||
RSQLite$SQLite()
|
||||
,here("ML","data-unshared","mimicDB.sqlite")
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# close database ----------------------------------------------------------
|
||||
|
||||
dbDisconnect(db)
|
Loading…
Reference in a new issue