diff options
| author | Johannes Ranke <johannes.ranke@jrwb.de> | 2026-03-05 14:32:30 +0100 |
|---|---|---|
| committer | Johannes Ranke <johannes.ranke@jrwb.de> | 2026-03-05 14:32:30 +0100 |
| commit | 0d73256947c7c79890a5f94622f0948645ea4da7 (patch) | |
| tree | 73469afee00da18d2e3ece1368c355afbb8817ff /R/chent.R | |
| parent | d6c7e8f5a0d0d4b564addf5b447bed6b3ba03b5e (diff) | |
Make test robust against unavailable services
Test logs are without internet.
Diffstat (limited to 'R/chent.R')
| -rw-r--r-- | R/chent.R | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -219,10 +219,10 @@ chent <- R6Class("chent", #' @description #' Get chemical information from RDKit if available get_rdkit = function(template = NULL) { - + if (!rdkit_available) stop("RDKit is not available") if (is.null(self$smiles)) stop("RDKit would need a SMILES code") - + available_smiles <- names(self$smiles) smiles_preference <- c("user", "PubChem", "PubChem_Connectivity") smiles_preferred_i <- min(match(available_smiles, smiles_preference)) @@ -492,7 +492,7 @@ chent <- R6Class("chent", #' @param N The Freundlich exponent #' @param perc_clay The percentage of clay in the soil #' @param CEC The cation exchange capacity - add_soil_sorption = function(soils, + add_soil_sorption = function(soils, Kf, Kfoc, N, type = NA, pH_orig = NA, pH_medium = NA, pH_H2O = NA, |
