R-hub builder: there is no package called 'utf8'

I used R-hub builder to build and check a package. It used to work as expected in the past. I am now getting an error when building the vignette:

Error in loadNamespace(name) : there is no package called 'utf8'
Calls: <Anonymous> ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted

This only shows up on the Windows build, so it's not a universal dependency. What is the proper approach to deal with this?

1 Like

:wave: @igor! Your issue seems to be same as another one over in the rhub repo. (the rhub issue tracker is a good place for R-hub bug reports/problems :slightly_smiling_face:)

@Gabor gave a workaround

rhub::check(
  platform="windows-x86_64-devel",
  env_vars=c(R_COMPILE_AND_INSTALL_PACKAGES = "always")
)

Does it solve the error?

5 Likes

That works. Thank you for sharing.

I had some R 3.6 to 4.0 transition issues recently, so my first thought was that it might be related to that somehow.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.