Skip to content
Prev 2170 / 12125 Next

[R-pkg-devel] creating indelible file during unit test

2017-12-12 13:24 GMT+01:00 Thierry Onkelinx <thierry.onkelinx at inbo.be>:
Supposing you call file.remove at some point, what about the following:

file.remove <- function(...) { invisible() }
# test your function here, should issue an error
rm("file.remove")

I?aki