Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issue #130 with deprecated use os purrr:map_chr #132

Merged
merged 1 commit into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ BugReports: https://github.com/pln-team/PLNmodels/issues
License: GPL (>= 3)
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.1
RoxygenNote: 7.3.2
Depends: R (>= 3.6)
LazyData: true
biocViews:
Expand Down
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ importFrom(pscl,zeroinfl)
importFrom(purrr,map)
importFrom(purrr,map2)
importFrom(purrr,map2_dbl)
importFrom(purrr,map_chr)
importFrom(purrr,map_dbl)
importFrom(purrr,map_int)
importFrom(purrr,reduce)
Expand Down
4 changes: 2 additions & 2 deletions R/PLNfamily-class.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#' @rdname PLNfamily
#' @include PLNfamily-class.R
#' @importFrom R6 R6Class
#' @importFrom purrr map reduce map_chr
#' @importFrom purrr map reduce
PLNfamily <-
R6Class(
classname = "PLNfamily",
Expand Down Expand Up @@ -182,7 +182,7 @@ PLNfamily <-
#' @field convergence sends back a data frame with some convergence diagnostics associated with the optimization process (method, optimal value, etc)
convergence = function() {
res <- purrr::map(self$models, function(model) {
c(nb_param = model$nb_param, purrr::map_chr(model$optim_par, tail, 1))
c(nb_param = model$nb_param, purrr::map(model$optim_par, tail, 1))
}) %>% purrr::reduce(rbind)
data.frame(param = private$params, res, stringsAsFactors = FALSE)
}
Expand Down
Loading