Hey everyone, for my R Studio coding class I am trying to run this set of code:
library(readr)
library(mosaic)
library(Stat2Data)
This is the error message I receive when it reaches the library(mosaic) line:
Error: package or namespace load failed for ‘mosaic’: .onLoad failed in loadNamespace() for 'broom', details: call: loadNamespace(name) error: there is no package called ‘backports’
I think I just figured it out; when I ran the install.packages("backports") command, it prompted me to install from sources the package which needs compilation. This time instead of choosing 'yes', I chose 'no' and that seems to have allowed my code to run fully.
Thanks for the help!
If you're on macOS, that's what you should always do unless you have intermediate skills in compilation debugging. Even then, it often requires advanced skills.