Search code examples
rrnotebook

Error: object ‘isFALSE’ is not exported by 'namespace:xfun' when running anything in a .Rmd file


# The following is fictional enrollment data for different majors in a liberal arts college
enrollment <- c(100, 250, 45, 95, 400)
major <- c("Political Science", "Math", "Anthropology", "Geography", "Economics")

Error: object ‘isFALSE’ is not exported by 'namespace:xfun'

Has anyone experienced this before? Every time I try this happens, regardless of what the contents of the chunk I am running are.

I tried many different notebooks running an Rmd file, but every time it did not work.


Solution

  • You need to update your packages.

    Searching the text of your error leads to this blog entry by the creator of the knitr package that has a longer explanation, but the lead is:

    You probably came to this blog post due to an error related to xfun::isFALSE(), and I strongly recommend that you update all your R packages: update.packages(ask = FALSE, checkBuilt = TRUE) That’s because the error is most likely to be from one of your outdated packages.