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: use deprecated() as default value for 'circular' argument #1431

Merged
merged 1 commit into from
Jul 17, 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
4 changes: 2 additions & 2 deletions R/make.R
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ graph.lcf <- function(n , shifts , repeats = 1) { # nocov start
#' @inheritParams make_lattice
#' @keywords internal
#' @export
graph.lattice <- function(dimvector = NULL , length = NULL , dim = NULL , nei = 1 , directed = FALSE , mutual = FALSE , periodic = FALSE, circular) { # nocov start
graph.lattice <- function(dimvector = NULL , length = NULL , dim = NULL , nei = 1 , directed = FALSE , mutual = FALSE , periodic = FALSE, circular = deprecated()) { # nocov start
lifecycle::deprecate_soft("2.0.4", "graph.lattice()", "make_lattice()")
if (is.numeric(length) && length != floor(length)) {
warning("length was rounded to the nearest integer")
Expand Down Expand Up @@ -1672,7 +1672,7 @@ full_graph <- function(...) constructor_spec(make_full_graph, ...)
#' make_lattice(length = 5, dim = 3)
make_lattice <- function(dimvector = NULL, length = NULL, dim = NULL,
nei = 1, directed = FALSE, mutual = FALSE,
periodic = FALSE, circular) {
periodic = FALSE, circular = deprecated()) {
if (lifecycle::is_present(circular)) {
lifecycle::deprecate_soft(
"2.0.3",
Expand Down
2 changes: 1 addition & 1 deletion man/degree.Rd

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

2 changes: 1 addition & 1 deletion man/graph.lattice.Rd

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

2 changes: 1 addition & 1 deletion man/make_lattice.Rd

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

Loading