Woops - sorry about that.
My lecturer told us that the newest version of gRain has an error and therefore we should install an older version and she provided us this code:
"remove.packages("gRain")
detach("package:gRain", unload=TRUE)
packageUrl <- 'https://cran.r-project.org/src/contrib/Archive/gRain/gRain_1.3-0.tar.gz'
install.packages(packageUrl, repos=NULL, type="source", dependencies = TRUE)"
Once I try to install based on this code I get a very long error in the console:
Thank you very much for your willingness to help. We are many who are facing this issue 