DesiQuintans / librarian

Install, Update, Load Packages from CRAN, Bioconductor, and GitHub in One Step.
GNU General Public License v3.0
54 stars 1 forks source link

fixed what looked like an infinite loop in the shelf function #22

Closed milescsmith closed 5 years ago

milescsmith commented 5 years ago

I too was getting the

Error in lib_paths(lib, make_path = TRUE, ask = ask) : 
  The paths

  '-1'

  are not writeable`

error. Looking at shelf(), it appears that the lib argument has the default value of calling lib_paths(), so that you get

lib_paths(lib = lib_paths())

As far as I can tell, setting the default value of lib to NULL has the same effect, but avoids the error.