Skip to content
Snippets Groups Projects
Commit 7afc3887 authored by Luke Zappia's avatar Luke Zappia
Browse files

Run checks

parent 1609583c
No related branches found
No related tags found
No related merge requests found
...@@ -121,6 +121,8 @@ splatParams <- function(...) { ...@@ -121,6 +121,8 @@ splatParams <- function(...) {
#' @param x splatParams object to print. #' @param x splatParams object to print.
#' @param ... further arguments passed to or from other methods. #' @param ... further arguments passed to or from other methods.
#' #'
#' @return Invisibly returns x (via \code{\link{invisible}(x)})
#'
#' @examples #' @examples
#' params <- defaultParams() #' params <- defaultParams()
#' print(params) #' print(params)
...@@ -161,6 +163,8 @@ print.splatParams <- function(x, ...) { ...@@ -161,6 +163,8 @@ print.splatParams <- function(x, ...) {
print(noquote(parameters), print.gap = 2) print(noquote(parameters), print.gap = 2)
cat("\n") cat("\n")
} }
invisible(x)
} }
#' Update a splatParams object #' Update a splatParams object
...@@ -234,7 +238,7 @@ setParams <- function(params, ...) { ...@@ -234,7 +238,7 @@ setParams <- function(params, ...) {
#' getParams(params, c("nGenes", "mean.rate")) #' getParams(params, c("nGenes", "mean.rate"))
#' # Returns a list if one of the selected parameters is a vector #' # Returns a list if one of the selected parameters is a vector
#' params <- setParams(params, groupCells = c(100, 200)) #' params <- setParams(params, groupCells = c(100, 200))
#' getParams(parans, c("nGenes", "mean.rate", "groupCells")) #' getParams(params, c("nGenes", "mean.rate", "groupCells"))
#' @export #' @export
getParams <- function(params, names) { getParams <- function(params, names) {
......
...@@ -27,6 +27,6 @@ getParams(params, "nGenes") ...@@ -27,6 +27,6 @@ getParams(params, "nGenes")
getParams(params, c("nGenes", "mean.rate")) getParams(params, c("nGenes", "mean.rate"))
# Returns a list if one of the selected parameters is a vector # Returns a list if one of the selected parameters is a vector
params <- setParams(params, groupCells = c(100, 200)) params <- setParams(params, groupCells = c(100, 200))
getParams(parans, c("nGenes", "mean.rate", "groupCells")) getParams(params, c("nGenes", "mean.rate", "groupCells"))
} }
...@@ -11,6 +11,9 @@ ...@@ -11,6 +11,9 @@
\item{...}{further arguments passed to or from other methods.} \item{...}{further arguments passed to or from other methods.}
} }
\value{
Invisibly returns x (via \code{\link{invisible}(x)})
}
\description{ \description{
Pretty print the parameters stored in a splatParams object. Parameters are Pretty print the parameters stored in a splatParams object. Parameters are
labelled as either (estimatable) or [not estimatable]. labelled as either (estimatable) or [not estimatable].
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment