Error when creating site with pkgdown

Hello everyone,

I have some trouble to use pkgdownto build a webpage for my package. Here is what I get:

-- Installing package into temporary library --------------------------------------------
== Building pkgdown site =======================================================
Reading from: 'C:/Users/n1605/Desktop/StanMoMo'
Writing to:   'C:/Users/n1605/Desktop/StanMoMo/docs'
-- Initialising site -----------------------------------------------------------
-- Building home ---------------------------------------------------------------
Reading ''
 namespace 'cachem' is not available and has been replaced
by .GlobalEnv when processing object '<unknown>'
Error in validate_key(key) : could not find function "validate_key"
Error: callr subprocess failed: could not find function "validate_key"
Type .Last.error.trace to see where the error occured

For info, I am using R 4.0.3 and pkgdown 1.6.1 under Windows 10.

Any help is appreciated!
Thanks in advance.

Two ideas

  • Can you try (re)installing the cachem package?
  • Does devtools::check() also return an error?

Thank you @maelle for your answer!

After struggling for some time yesterday, I was able to build a site after installing the cachem and fastmap packages. I don't know why pkgdown needs them but at least, it worked!

1 Like


cachem is a dependency of memoise that is a dependency of pkgdown. :slightly_smiling_face:

This topic was automatically closed after 45 days. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.