I'm teaching an intro to R course this week, and we've been plagued by 3 errors that I don't quite understand well enough to deal with.
For some participants, loading tidyverse in an odd order returns this error:
Error in completeSubclasses(classDef2, class1, obj, where) :
trying to get slot "subclasses" from an object of a basic class ("NULL") with no slots
Error: package or namespace load failed for ‘tidyverse’:
.onLoad failed in loadNamespace() for 'dbplyr', details:
call: setClass(cl, contains = c(prevClass, "VIRTUAL"), where = where)
error: error in contained classes ("character") for class “ident”; class definition removed from ‘dbplyr’
Other participants get this error when trying to load various packages:
Error: package or namespace load failed for ‘ggplot2’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
namespace ‘rlang’ 1.0.2 is already loaded, but >= 1.0.3 is required
Finally, this message pops up when some participants open RStudio:
Error in .rs.parsePackageDependencies(contents, extension) :
object 'partition_yaml_front_matter' not found
I've found various temporary fixes for some of these ((1) load tidyverse before any other libraries, (2) re-install rlang 1.0.4 from source, (3) close all tabs in RStudio, close Rstudio, reopen Rstudio. I can find some GitHub issues for these, but are there plans to resolve these soon? The constant difficulties just doing a single thing in a script has been a little demoralizing, and it's hard to get people excited about R when there are so many issues and SPSS just works out of the box...
thanks!