# NOT RUN {
# return only the parsed tibble
drug_exp_prop()
# will throw an error, as database_connection is NULL
drug_exp_prop(save_table = TRUE)
# save in database in SQLite in memory database and return parsed tibble
sqlite_con <- DBI::dbConnect(RSQLite::SQLite())
drug_exp_prop(save_table = TRUE, database_connection = sqlite_con)
# save parsed tibble as csv if it does not exist in current
# location and return parsed tibble.
# If the csv exist before read it and return its data.
drug_exp_prop(save_csv = TRUE)
# save in database, save parsed tibble as csv if it does not exist
# in current location and return parsed tibble.
# If the csv exist before read it and return its data.
drug_exp_prop(save_table = TRUE, save_csv = TRUE,
database_connection = sqlite_con)
# save parsed tibble as csv if it does not exist in given location
# and return parsed tibble.
# If the csv exist before read it and return its data.
drug_exp_prop(save_csv = TRUE, csv_path = TRUE)
# save parsed tibble as csv if it does not exist in current
# location and return parsed tibble.
# If the csv exist override it and return it.
drug_exp_prop(
save_csv = TRUE, csv_path = TRUE,
override = TRUE
)
# }
Run the code above in your browser using DataLab