renv error when rendering quarto

I am sometimes unable to render quarto documents for my quarto website that I was previously able to render. When I try, it gives me the following error:

Error in if (n == 1) word else paste(word, "s", sep = "") :
the condition has length > 1
Calls: source ... sprintf -> <Anonymous> -> nplural -> paste -> plural
Execution halted

I noticed I also get this error when I restart my R session.

Error in if (n == 1) word else paste(word, "s", sep = "") :
the condition has length > 1

So when I googled, I found this code here: renv source: R/utils.R in the plural() function.

I am not sure what this function does, or why it is causing my renders to fail, but any help would be greatly appreciated!

This is related to a previous post: quarto website `qmd`s not rendering

Probably related to this renv issue

Thanks! Can you please offer advice where I can locate my renv cache directory? I am using a PC. I do not see a folder for ".renv", only "renv". Is it the folder within the renv folder where all the libraries are located?
Should I be using a .renvignore instead?

Look at the documentation about paths maybe ?

This will allow you to get the effective value for your project.

This topic was automatically closed 21 days after the last reply. 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.