Skip to content

Commit

Permalink
fix r cmd check issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jgabry committed Dec 16, 2020
1 parent 324b065 commit b425a32
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/cmdstanr-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@
#'
NULL

if (getRversion() >= "2.15.1") utils::globalVariables(c("self", "private"))
if (getRversion() >= "2.15.1") utils::globalVariables(c("self", "private", "super"))
4 changes: 2 additions & 2 deletions R/fit.R
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ CmdStanMCMC$set("public", name = "inv_metric", value = inv_metric)
#' @name fit-method-num_chains
#' @aliases num_chains
#' @description The `$num_chains()` method returns the number of MCMC chains.
#' @return Am integer.
#' @return An integer.
#'
#' @seealso [`CmdStanMCMC`]
#'
Expand Down Expand Up @@ -1092,7 +1092,7 @@ CmdStanMLE <- R6::R6Class(
mle <- function(variables = NULL) {
x <- self$draws(variables)
x <- x[, colnames(x) != "lp__"]
setNames(as.numeric(x), nm = posterior::variables(x))
stats::setNames(as.numeric(x), posterior::variables(x))
}
CmdStanMLE$set("public", name = "mle", value = mle)

Expand Down
2 changes: 1 addition & 1 deletion man/fit-method-num_chains.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b425a32

Please sign in to comment.