Cannot install package DAAG

I am trying to install package DAAG with this install.packages('DAAG'). After installation and I execute this library(DAAG), I get this error

Error: package or namespace load failed for ‘DAAG’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘interp’

I tried to install package interp as well. However, I get this error
ERROR: failed to lock directory ‘/cloud/lib/x86_64-pc-linux-gnu-library/4.4’ for modifying
Try removing ‘/cloud/lib/x86_64-pc-linux-gnu-library/4.4/00LOCK-RcppEigen’
ERROR: dependency ‘RcppEigen’ is not available for package ‘interp’

  • removing ‘/cloud/lib/x86_64-pc-linux-gnu-library/4.4/interp’
    Any help will be greatly appreciated.

I am using paid account of posit.cloud from Harvard.

Can you confirm which OS version this project is on? You can find this if you click the gear in the top right then choose "System". If its not already on Ubuntu 24.04 (Noble) then. I recommend upgrading the OS and trying again. If you are already on 24.04 then there is something else going on.