From 43e218bb93dd299204a28a2baf782557784ee82c Mon Sep 17 00:00:00 2001 From: Sebastian Henz <sebastian.henz@ufz.de> Date: Tue, 18 Aug 2020 17:41:51 +0200 Subject: [PATCH] Fix bug that causes plot functions to visibly return NULL, closes #51 --- DESCRIPTION | 4 ++-- R/plot_stress.R | 2 +- R/plot_survival.R | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 8763904..0d88936 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,8 +1,8 @@ Package: stressaddition Type: Package Title: Modelling Tri-Phasic Concentration-Response Relationships -Version: 3.0.1 -Date: 2020-07-29 +Version: 3.0.2 +Date: 2020-08-18 Authors@R: c(person("Sebastian", "Henz", role = c("aut", "cre"), diff --git a/R/plot_stress.R b/R/plot_stress.R index 52cce5b..f3dfd0b 100644 --- a/R/plot_stress.R +++ b/R/plot_stress.R @@ -194,5 +194,5 @@ plot_stress <- function(model, ) } } - NULL # suppress all possible return values + invisible(NULL) # suppress all possible return values } diff --git a/R/plot_survival.R b/R/plot_survival.R index 39a7613..f99d9fb 100644 --- a/R/plot_survival.R +++ b/R/plot_survival.R @@ -175,5 +175,5 @@ plot_survival <- function(model, ) } } - NULL # suppress all possible return values + invisible(NULL) # suppress all possible return values } -- GitLab