From c9b31a5fbb98235d57900ea34f862ac3b5f3b4a4 Mon Sep 17 00:00:00 2001
From: Luke Zappia <lazappi@users.noreply.github.com>
Date: Tue, 20 Aug 2019 18:12:15 +1000
Subject: [PATCH] Fix splotchEstimate example

---
 NEWS.md                | 1 +
 R/splotch-estimate.R   | 5 +++--
 man/splotchEstimate.Rd | 5 +++--
 3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/NEWS.md b/NEWS.md
index 18d91bd..9143752 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -1,6 +1,7 @@
 ### Version 1.9.4.9008 (2019-08-20)
 
 * Merge master into splotch branch
+* Fix dataset in splotchEstimate example
 
 ## Version 1.9.4 (2019-08-20)
 
diff --git a/R/splotch-estimate.R b/R/splotch-estimate.R
index 36a0792..d4bff44 100644
--- a/R/splotch-estimate.R
+++ b/R/splotch-estimate.R
@@ -17,9 +17,10 @@
 #' @examples
 #' # Load example data
 #' library(scater)
-#' data("sc_example_counts")
+#' set.seed(1)
+#' sce <- mockSCE()
 #'
-#' params <- splotchEstimate(sc_example_counts)
+#' params <- splotchEstimate(sce)
 #' params
 #' @export
 splotchEstimate <- function(counts, params = newSplotchParams(),
diff --git a/man/splotchEstimate.Rd b/man/splotchEstimate.Rd
index e35772f..d6cc25f 100644
--- a/man/splotchEstimate.Rd
+++ b/man/splotchEstimate.Rd
@@ -33,9 +33,10 @@ is done.
 \examples{
 # Load example data
 library(scater)
-data("sc_example_counts")
+set.seed(1)
+sce <- mockSCE()
 
-params <- splotchEstimate(sc_example_counts)
+params <- splotchEstimate(sce)
 params
 }
 \seealso{
-- 
GitLab