From 299a0b3d24acb12f1f523073f95f7cb23794de89 Mon Sep 17 00:00:00 2001 From: Harvey Guo <32609824+h4rvey-g@users.noreply.github.com> Date: Sat, 31 Aug 2024 06:59:28 +0000 Subject: [PATCH] fix: Check `getThemeInfo` existence --- R/zzz.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/zzz.R b/R/zzz.R index ff2362e..c4b7398 100644 --- a/R/zzz.R +++ b/R/zzz.R @@ -4,7 +4,7 @@ # bsu_main_color <- "#1f78b4" # # # Check Theme: If Dark, Update Colors -# if (rstudioapi::isAvailable()) { +# if (rstudioapi::isAvailable() && rstudioapi::hasFun("getThemeInfo")) { # tryCatch({ # theme <- rstudioapi::getThemeInfo() # })