Skip to content

Instantly share code, notes, and snippets.

@chasemc
Created September 4, 2020 13:51
Show Gist options
  • Select an option

  • Save chasemc/778299fd83c9b96c70ec90e816683678 to your computer and use it in GitHub Desktop.

Select an option

Save chasemc/778299fd83c9b96c70ec90e816683678 to your computer and use it in GitHub Desktop.
Update to new IDBAc db schema (currently need "prioritizer" git branch of IDBac)
old_files_path <- "/home/user/Downloads/db/old"
a <- list.files(old_files_path, full.names = FALSE)
a <- tools::file_path_sans_ext(a)
for(i in a) {
pool <- IDBacApp::idbac_connect(fileName = i,
filePath = old_files_path)[[1]]
IDBacApp::idbac_update_db(pool = pool,
copy_overwrite = "copy")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment