aboutsummaryrefslogtreecommitdiff
path: root/R
diff options
context:
space:
mode:
Diffstat (limited to 'R')
-rw-r--r--R/checkexperiment.R2
-rw-r--r--R/checksubstance.R2
-rw-r--r--R/drdata.R2
3 files changed, 3 insertions, 3 deletions
diff --git a/R/checkexperiment.R b/R/checkexperiment.R
index 8c2f472..b264243 100644
--- a/R/checkexperiment.R
+++ b/R/checkexperiment.R
@@ -9,7 +9,7 @@ checkexperiment <- function(id, db = "ecotox", endpoint = "%")
if (!(db %in% rownames(databases))) stop("Database is not supported")
- if (requireNamespace("RODBC")) {
+ if (require("RODBC")) {
channel <- RODBC::odbcConnect(db, uid="cytotox", pwd="cytotox", case="tolower")
} else {
stop("For this function, the RODBC package has to be installed and configured.")
diff --git a/R/checksubstance.R b/R/checksubstance.R
index 3e07f92..790182f 100644
--- a/R/checksubstance.R
+++ b/R/checksubstance.R
@@ -11,7 +11,7 @@ checksubstance <- function(substance, db = "cytotox", experimentator = "%",
if (!(db %in% rownames(databases))) stop("Database is not supported")
- if (requireNamespace("RODBC")) {
+ if (require("RODBC")) {
channel <- RODBC::odbcConnect(db, uid="cytotox", pwd="cytotox", case="tolower")
} else {
stop("For this function, the RODBC package has to be installed and configured.")
diff --git a/R/drdata.R b/R/drdata.R
index 0bf9597..eda1249 100644
--- a/R/drdata.R
+++ b/R/drdata.R
@@ -3,7 +3,7 @@ drdata <- function(substances, experimentator = "%", db = "cytotox",
organism = "Vibrio fischeri", endpoint = "Luminescence", whereClause = "1",
ok = "'ok','no fit'")
{
- if (requireNamespace("RODBC")) {
+ if (require("RODBC")) {
channel <- RODBC::odbcConnect(db,uid="cytotox",pwd="cytotox",case="tolower")
slist <- paste(substances,collapse="','")
if (db == "cytotox") {

Contact - Imprint