I've been working on a local package -my first, so I'm not so knowledgeable.
I recently updated my mac's OS to Mojave and when reloading my package in a fresh Rstudio session via devtools::load_all(".")
, Rstudio hangs indefinitely and CPU usage spikes to 100%.
The package was built from scratch using Rstudio's package tools and devtools from the beginning, following the R Packages book.
Googling the error suggests potential problems with either the working directory or a missing DESCRIPTION file, but both of those seem fine; ie getwd()
returns the expected on-disk package directory and the DESC file exists, I can open it, looks right, etc; and I've never edited it by hand.
Unfortunately I can't give a very helpful reprex but below is the output of a few simple things along with session info.
Any guidance would be much appreciated.
getwd()
#> [1] "/Users/cawthm/my_tools"
devtools::load_all(".")
#> Error: Could not find package root.
devtools::check()
#> Error: Could not find package root.
Created on 2018-11-06 by the reprex package (v0.2.1)
Session info
devtools::session_info()
#> Session info -------------------------------------------------------------
#> setting value
#> version R version 3.5.1 (2018-07-02)
#> system x86_64, darwin15.6.0
#> ui X11
#> language (EN)
#> collate en_US.UTF-8
#> tz America/Chicago
#> date 2018-11-06
#> Packages -----------------------------------------------------------------
#> package * version date source
#> backports 1.1.2 2017-12-13 CRAN (R 3.5.0)
#> base * 3.5.1 2018-07-05 local
#> compiler 3.5.1 2018-07-05 local
#> datasets * 3.5.1 2018-07-05 local
#> devtools 1.13.6 2018-06-27 CRAN (R 3.5.0)
#> digest 0.6.15 2018-01-28 CRAN (R 3.5.0)
#> evaluate 0.10.1 2017-06-24 CRAN (R 3.5.0)
#> graphics * 3.5.1 2018-07-05 local
#> grDevices * 3.5.1 2018-07-05 local
#> htmltools 0.3.6 2017-04-28 CRAN (R 3.5.0)
#> knitr 1.20 2018-02-20 CRAN (R 3.5.0)
#> magrittr 1.5 2014-11-22 CRAN (R 3.5.0)
#> memoise 1.1.0 2017-04-21 CRAN (R 3.5.0)
#> methods * 3.5.1 2018-07-05 local
#> Rcpp 0.12.19 2018-10-01 cran (@0.12.19)
#> rmarkdown 1.9 2018-03-01 CRAN (R 3.5.0)
#> rprojroot 1.3-2 2018-01-03 CRAN (R 3.5.0)
#> stats * 3.5.1 2018-07-05 local
#> stringi 1.2.2 2018-05-02 CRAN (R 3.5.0)
#> stringr 1.3.1 2018-05-10 CRAN (R 3.5.0)
#> tools 3.5.1 2018-07-05 local
#> utils * 3.5.1 2018-07-05 local
#> withr 2.1.2 2018-03-15 CRAN (R 3.5.0)
#> yaml 2.1.19 2018-05-01 CRAN (R 3.5.0)