r-lib / fs

Provide cross platform file operations based on libuv.
https://fs.r-lib.org/
Other
368 stars 80 forks source link

CRAN winbuilder: getCharCE() error #104

Closed mllg closed 6 years ago

mllg commented 6 years ago

This probably does not belong here, but maybe you've seen it before: https://win-builder.r-project.org/incoming_pretest/batchtools_0.9.9_20180423_222637/Windows/00check.log

Traceback jumps into fs at step 6:

  'getCharCE' must be called on a CHARSXP
  1: makeTestRegistry() at testthat/test_convertIds.R:4
  2: makeRegistry(file.dir = file.dir, make.default = make.default, ...) at d:\RCompile\CRANincoming\R-devel\batchtools.Rcheck\tests_i386\testthat\helper.R:23
  3: saveRegistry(reg)
  4: writeRDS(ee, file = fn[1L])
  5: file_remove(file)
  6: fs::file_delete(x[fs::file_exists(x)])
  7: assert_no_missing(path)
  8: which(is.na(x))
  9: x[fs::file_exists(x)]
  10: `[.fs_path`(x, fs::file_exists(x))
  11: new_fs_path(NextMethod("["))
  12: structure(enc2utf8(x), class = c("fs_path", "character"))
  13: NextMethod("[")
  14: fs::file_exists(x)
  15: file_info(path)
  16: factor(res$type, levels = file_types, labels = names(file_types))
  17: res$type

Unable to reproduce locally. :cry:

jimhester commented 6 years ago

I have not seen this, not sure what is going on.

mllg commented 6 years ago

Problem disappeared. Maybe just a temporarily broken build of R-devel.