When sending my package to CRAN, I received the warning "but you must not write to the user filespace in examples, please use the session dir via tempdir ()."
However, it includes a conditional to save and in my example I put it as FALSE.
In the function:
if(save==T){
fileout <- tempfile(fileext = ".docx")
fileout <- paste(getwd(),"/Inventario Florestal - ",nm,".docx",sep="")
print(doc, target = fileout)
}
In my example, I tried to save to tempdir, but it seems that the files are still being saved in the "packagename.Rcheck" folder
\dontshow{.old_wd <- setwd(tempdir())}
IF_ace <- ace(est2,a=0.1,aj=c(12.6,10.2),save=FALSE)
\dontshow{setwd(.old_wd)}
As I understand it, it seems that this did not happen for Windows, only for: Flavor: r-devel-linux-x86_64-debian-gcc
Would anyone have a solution?