Skip to content
Snippets Groups Projects
Commit 5562f7db authored by Mollenhorst, Erwin's avatar Mollenhorst, Erwin
Browse files

Copy active IB database to local data-folder

parent d665508a
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
"InterBase": {
"driver": "InterBase ODBC driver",
"server": "localhost",
"database": "D:/KoeEnEiwit/KoeEnEiwit.IB",
"database": "D:/KoeEnEiwit/R-InterBase/Data/KoeEnEiwit.IB",
"username": "SYSDBA",
"password": "masterkey"
},
......
......@@ -3,11 +3,21 @@ cat("\nStart uitvoeren script 'testKoeEnEiwit.R' \n")
# Leegmaken van environment
rm(list=ls())
# Define where active database is located
vDriveLetter <- "S:" # drive letter used for the location of the IB database
vPathIB <- paste0(vDriveLetter, "/InetPub/databases/Webapplicaties/KoeEnEiwit")
vFileName <- "KOEENEIWIT.IB"
rm(vDriveLetter)
rdirectory <- dirname(rstudioapi::getActiveDocumentContext()$path)
setwd(rdirectory)
#setwd(commandArgs(trailingOnly = TRUE)[1])
getwd()
# Create local copy of IB database
file.copy(file.path(vPathIB, vFileName), "./Data", overwrite = T)
rm(vPathIB, vFileName)
# Verkrijgen van relevante libraries en functies
source('./Shared/helperFunctionsInterBase.R')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment