[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Unittest of oligoClasses tries to write data to /usr/local/lib/R/site-library



Hi Dirk, 

Thank you,

Benilton 

On Fri, Mar 19, 2021, 5:38 PM Dirk Eddelbuettel <edd@debian.org> wrote:

A fairly standard way around this is to make the package a Suggests: and to
condition the use in code (or tests) via

   if (requireNamespace(pkageNameHere, quietly = TRUE) {
      ....
   }

That method is described in Writing R Extensions too, and followed by a
(very) large nunber of packages.

Dirk

--
https://dirk.eddelbuettel.com | @eddelbuettel | edd@debian.org

Reply to: