Skip to content

DB Creation and Updating #114

@jthompson-arcus

Description

@jthompson-arcus

clinsight/R/run_app.R

Lines 66 to 74 in f32e09d

if(!file.exists(user_db)){
warning("No user database found. New database will be created")
db_create(get_review_data(data), db_path = user_db)
} else{
# Skip if not needed for faster testing:
if(isTRUE(get_golem_config("app_prod"))){
db_update(get_review_data(data), db_path = user_db)
}
}

Why is the database creation and updating not part of the preprocessing? It seems like since we already require the creation of the study data and meta data that it makes sense to update the database when study data is created, not every time the application is run.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions