Skip to content

Commit

Permalink
remove cc_dir, use normalizePath() on default (#6259)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico authored Jul 14, 2024
1 parent 140ee61 commit b9f0211
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .dev/cc.R
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit b9f0211

Please sign in to comment.