File tree 1 file changed +6
-10
lines changed 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -415,20 +415,16 @@ package_coverage <- function(path = ".",
415
415
install_path <- normalize_path(install_path )
416
416
dir.create(install_path )
417
417
418
- flags <- getOption(" covr.flags" )
419
-
420
418
# check for compiler
421
419
if (! uses_icc()) {
422
420
flags <- getOption(" covr.flags" )
421
+ } else if (length(getOption(" covr.icov" )) > 0L ) {
422
+ flags <- getOption(" covr.icov_flags" )
423
+ # clean up old icov files
424
+ unlink(file.path(pkg $ path , " src" , " *.dyn" ))
425
+ unlink(file.path(pkg $ path , " src" , " pgopti.*" ))
423
426
} else {
424
- if (length(getOption(" covr.icov" )) > 0L ) {
425
- flags <- getOption(" covr.icov_flags" )
426
- # clean up old icov files
427
- unlink(file.path(pkg $ path , " src" ," *.dyn" ))
428
- unlink(file.path(pkg $ path , " src" ," pgopti.*" ))
429
- } else {
430
- stop(" icc is not available" )
431
- }
427
+ stop(" icc is not available" )
432
428
}
433
429
434
430
if (isTRUE(clean )) {
You can’t perform that action at this time.
0 commit comments