RStudio crashes when loading package from github

Every time I try to run a library call to a package I wrote, RStudio crashes. I don't even know how to troubleshoot when there's no message at all -- just a big bomb in the middle of my screen. I'm using R version 4.2.0 and RStudio 2022.07.2 Build 576 on a PC. Downloading the package works fine with

 devtools::install_github(repo = "shirewoman2/Consultancy")

but then as soon as I do

 library(SimcypConsultancy)

I get the bomb. Where should I even start to troubleshoot this?

I’m speculating because I know nothing of the design of your package, but it were me, I’d do a test of stripping everything out except dependencies. If it crashes there, I’d remove the second half and test again … repeat. If it’s not dependencies it must be something that automatically gets invoked since it crashes before any user application of a function in the package.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.