From 54523a4006bc6a074fc9a984c75fa3fe4a67676d Mon Sep 17 00:00:00 2001 From: kartikeya Date: Tue, 3 Oct 2023 12:30:52 +0530 Subject: [PATCH] fixing cmd check --- R/zzz.R | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/R/zzz.R b/R/zzz.R index e4e5a2f6..67ecf40e 100644 --- a/R/zzz.R +++ b/R/zzz.R @@ -10,11 +10,13 @@ toset <- !(names(default_global_knitr) %in% names(op)) if (any(toset)) options(default_global_knitr[toset]) + invisible() +} + +.onAttach <- function(libname, pkgname) { packageStartupMessage( if (!requireNamespace("formatR", quietly = TRUE)) { "For better code formatting, consider installing the formatR package." } ) - - invisible() }