Skip to content

Commit

Permalink
Merge branch 'main' of github.com:mlr-org/bbotk
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc committed Jan 12, 2023
2 parents b7dbf3a + 9bef531 commit 40a8052
Show file tree
Hide file tree
Showing 12 changed files with 46 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
root = true

[*]
charset = utf8
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Encoding: UTF-8
Language: en-US
NeedsCompilation: no
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.2
RoxygenNote: 7.2.3
Collate:
'Archive.R'
'ArchiveBest.R'
Expand Down
3 changes: 2 additions & 1 deletion R/Archive.R
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ Archive = R6Class("Archive",

#' @description
#' Helper for print outputs.
format = function() {
#' @param ... (ignored).
format = function(...) {
sprintf("<%s>", class(self)[1L])
},

Expand Down
4 changes: 2 additions & 2 deletions R/Objective.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ Objective = R6Class("Objective",

#' @description
#' Helper for print outputs.
#' @return `character()`.
format = function() {
#' @param ... (ignored).
format = function(...) {
sprintf("<%s:%s>", class(self)[1L], self$id)
},

Expand Down
3 changes: 2 additions & 1 deletion R/OptimInstance.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ OptimInstance = R6Class("OptimInstance",

#' @description
#' Helper for print outputs.
format = function() {
#' @param ... (ignored).
format = function(...) {
sprintf("<%s>", class(self)[1L])
},

Expand Down
3 changes: 2 additions & 1 deletion R/Optimizer.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ Optimizer = R6Class("Optimizer",

#' @description
#' Helper for print outputs.
format = function() {
#' @param ... (ignored).
format = function(...) {
sprintf("<%s>", class(self)[1L])
},

Expand Down
3 changes: 2 additions & 1 deletion R/Terminator.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ Terminator = R6Class("Terminator",
#' Helper for print outputs.
#' @param with_params (`logical(1)`)\cr
#' Add parameter values to format string.
format = function(with_params = FALSE) {
#' @param ... (ignored).
format = function(with_params = FALSE, ...) {
if (with_params && length(self$param_set$values)) {
sprintf("<%s> [%s]", class(self)[1L], as_short_string(self$param_set$values))
} else {
Expand Down
9 changes: 8 additions & 1 deletion man/Archive.Rd

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

10 changes: 7 additions & 3 deletions man/Objective.Rd

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

9 changes: 8 additions & 1 deletion man/OptimInstance.Rd

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

9 changes: 8 additions & 1 deletion man/Optimizer.Rd

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

4 changes: 3 additions & 1 deletion man/Terminator.Rd

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

0 comments on commit 40a8052

Please sign in to comment.