From b9f02114f73791198e3d9f703232aa9c528f0581 Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Sat, 13 Jul 2024 18:32:17 -0700 Subject: [PATCH] remove cc_dir, use normalizePath() on default (#6259) --- .dev/cc.R | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.dev/cc.R b/.dev/cc.R index 3ce9d2455..2c33a2256 100644 --- a/.dev/cc.R +++ b/.dev/cc.R @@ -54,11 +54,7 @@ sourceImports = function(path=getwd(), quiet=FALSE) { return(invisible()) } -cc = function(test=FALSE, clean=FALSE, debug=FALSE, omp=!debug, cc_dir, path=Sys.getenv("PROJ_PATH", unset="."), CC="gcc", quiet=FALSE) { - if (!missing(cc_dir)) { - warning("'cc_dir' arg is deprecated, use 'path' argument or 'PROJ_PATH' env var instead") - path = cc_dir - } +cc = function(test=FALSE, clean=FALSE, debug=FALSE, omp=!debug, path=Sys.getenv("PROJ_PATH", unset=normalizePath(".")), CC="gcc", quiet=FALSE) { stopifnot(is.character(CC), length(CC)==1L, !is.na(CC), nzchar(CC)) gc()