From c1871fdfe217c71a62d2941c5af9a5d181c37e26 Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Wed, 4 Oct 2023 06:48:49 +0000 Subject: [PATCH] set structure() as an undesirable function by default --- R/zzz.R | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/R/zzz.R b/R/zzz.R index f7ed629e1..c164b4a95 100644 --- a/R/zzz.R +++ b/R/zzz.R @@ -171,7 +171,9 @@ all_undesirable_functions <- modify_defaults( untrace = paste( "remove this likely leftover from debugging.", "It is only useful for interactive debugging with trace()" - ) + ), + structure = + "Use class<-, names<-, and attr<- to set attributes" ) #' @rdname default_undesirable_functions