Skip to content

Commit b7878d2

Browse files
committed
use identical rather than is.na
1 parent ae33ee0 commit b7878d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resources/rmd/execute.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ execute <- function(input, format, tempDir, libDir, dependencies, cwd, params, r
159159
} else {
160160
preserve <- NA
161161
}
162-
postProcess <- !is.na(preserve) || isTRUE(format$render$`code-link`)
162+
postProcess <- !identical(preserve, NA) || isTRUE(format$render$`code-link`)
163163

164164
# read and then delete the rendered output file
165165
markdown <- xfun::read_utf8(output_file)

0 commit comments

Comments
 (0)