Troubleshoot | R recipes aren’t working after upgrading or migrating the instance#

The first thing to check when this happens is whether a user has upgraded the R version on your instance. If so, since R doesn’t maintain binary compatibility, please make sure to first try rebuilding your default R environment and managed code environments. R.lib in Dataiku and/or your code environments are likely outdated.

If that doesn’t work, then this likely means that faulty packages have been installed at a global level. You must remove them by:

  • Run R from the terminal of your Dataiku server.

./R/bin
  • Check for the problematic packages.

find.package("TheBrokenPackage")
  • If a global path (like /usr/share or /usr/lib or /usr/local) is returned, then open an R shell as the root user and remove said packages.

remove.packages(c("TheBrokenPackage"))
  • Repeat the previous steps until there are no more broken packages that remain.

Warning

Please make sure to replace TheBrokenPackage with the name of the actual package.