brodieG / unitizer

Easy R Unit Tests
Other
39 stars 6 forks source link

Working Directory Issues on Win-builder #238

Closed brodieG closed 3 years ago

brodieG commented 7 years ago
Error in setwd(test.dir) : cannot change working directory
Warning in unitize_core(test.files = test.files, store.ids = store.ids,  :
  Working directory state tracking is in mode 2, but we failed setting director to
'd:/RCompile/CRANguest/R-devel/vetr.Rcheck/tests' so we are  leaving the working
directory unchanged.

Probably related to the tests we have to skip as well since those seemed to involve directory issues as well.

brodieG commented 7 years ago

Looks like the "_x64" etc business is to blame:

> library(unitizer)
State tracking is disabled by default to comply with CRAN policies. Add `options(unitizer.state='recommended')` to your 'Rprofile' file to enable, or `options(unitizer.state='off')` to quash this message without enabling.  See `?unitizerState` for details.
> cat(getwd(), "\n")
d:/RCompile/CRANguest/R-release/vetr.Rcheck/tests_x64 
> 
> unitize_dir('unitizer', state='recommended')

Error in setwd(test.dir) : cannot change working directory
Warning in unitize_core(test.files = test.files, store.ids = store.ids,  :
  Working directory state tracking is in mode 2, but we failed setting director to
'd:/RCompile/CRANguest/R-release/vetr.Rcheck/tests' so we are  leaving the 
working directory unchanged.
brodieG commented 3 years ago

I haven't seen this in years, so assume it's fixed.