search for: makeextptr

Displaying 3 results from an estimated 3 matches for "makeextptr".

2020 Apr 03
4
The finalizer of the externalPtr does not work when closing R?
...xample.R) ## Create a temporary file tmpFile <- paste0(system.file(package = "testPackage"), "/tmp") tmpFile file.create(tmpFile) file.exists(tmpFile) ## Create an external pointer whose finalizer will delete ## the file when the variable is not in used x <- testPackage:::makeExtPtr(file.remove,tmpFile) ## GC is working fine rm(list="x") gc() file.exists(tmpFile) ## Create the temporary file again file.create(tmpFile) file.exists(tmpFile) x <- testPackage:::makeExtPtr(file.remove,tmpFile) ## Quit R session without explicitly cleaning the working space quit(save =...
2020 Apr 03
0
The finalizer of the externalPtr does not work when closing R?
...le > tmpFile <- paste0(system.file(package = "testPackage"), "/tmp") > tmpFile > file.create(tmpFile) > file.exists(tmpFile) > ## Create an external pointer whose finalizer will delete > ## the file when the variable is not in used > x <- testPackage:::makeExtPtr(file.remove,tmpFile) > ## GC is working fine > rm(list="x") > gc() > file.exists(tmpFile) > > ## Create the temporary file again > file.create(tmpFile) > file.exists(tmpFile) > x <- testPackage:::makeExtPtr(file.remove,tmpFile) > ## Quit R session without...
2020 Apr 03
0
[External] The finalizer of the externalPtr does not work when closing R?
...le > tmpFile <- paste0(system.file(package = "testPackage"), "/tmp") > tmpFile > file.create(tmpFile) > file.exists(tmpFile) > ## Create an external pointer whose finalizer will delete > ## the file when the variable is not in used > x <- testPackage:::makeExtPtr(file.remove,tmpFile) > ## GC is working fine > rm(list="x") > gc() > file.exists(tmpFile) > > ## Create the temporary file again > file.create(tmpFile) > file.exists(tmpFile) > x <- testPackage:::makeExtPtr(file.remove,tmpFile) > ## Quit R session without...