Actually, the report I received refers to the old 0.7 version…for whatever reason? The version I had submitted was 0.8 in which I had corrected this. Well, let’s see…
Another issue seems to be that the text file the example is supposed to read in is not read (properly) using Debian: Warning in is.na(data$activity) : is.na() applied to non-(list or vector) of type 'NULL' Error in 1:a : argument of length 0 I am reading in a text file with a numeric column (data$activity) and date or datetime (which is then converted using as.POSIXct. Subsequently, I check if there are NAs… Any ideas what might be happening here? Best, Christine -----Ursprüngliche Nachricht----- Von: Iñaki Úcar [mailto:i.uca...@gmail.com] Gesendet: Dienstag, 19. Dezember 2017 16:48 An: Blume Christine Cc: r-package-devel@r-project.org Betreff: Re: [R-pkg-devel] nparACT package: "working directory was changed to...resetting" 2017-12-19 16:27 GMT+01:00 Blume Christine <christine.bl...@sbg.ac.at<mailto:christine.bl...@sbg.ac.at>>: > Hi Duncan, > > Thanks a lot! Good to see that you had a similar idea, I did just that...in > my example it looks like this, however, that does not help, i.e. that is the > code that is associated with the warning… > > data(sleepstudy) > > wd <- getwd() > > name <- "sleepstudy_example" > > newdir <- paste(wd,name, sep="/") > > if (dir.exists(newdir)){ > > setwd(newdir) > > write.table(sleepstudy, file = "sleepstudy.txt", row.names=FALSE, col.names = > FALSE) > > r <- nparACT_flex_loop(newdir, SR = 4/60, minutes = 435) > > } else { > > dir.create(newdir) > > setwd(newdir) > > write.table(sleepstudy, file = "sleepstudy.txt", row.names=FALSE, col.names = > FALSE) > > r <- nparACT_flex_loop(newdir, SR = 4/60, minutes = 435) > > } > > setwd(wd) > > } I see: $ wget https://cran.r-project.org/src/contrib/nparACT_0.7.tar.gz $ tar xf nparACT_0.7.tar.gz $ grep -r setwd nparACT nparACT/man/nparACT_flex_loop.Rd:setwd(newdir) nparACT/man/nparACT_base_loop.Rd:setwd(newdir) so two examples don't restore the wd as Duncan was pointing out. Iñaki > > > > Best, > > Christine > > [[alternative HTML version deleted]] ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel