Suggests dependencies for web app

21 views
Skip to first unread message

Ruben Arslan

unread,
Jan 19, 2021, 6:11:00 AM1/19/21
to opencpu
Hi all,

I've got an OpenCPU web app running here http://rubenarslan.ocpu.io/codebook/www/

I broke it a while ago because I moved some dependencies to Suggests
(specifically a Dep on rio) which I need only for the web app, but not
for day-to-day operations with the package. Apparently, the Github hook
does not install Suggests dependencies. Is there any way to fix that without
moving the dependency back to Imports? I guess I could put the web app
in its own package.
It's not urgent (I'm mainly running the web app on my own server), but just curious.

Best,

Ruben


Jeroen Ooms

unread,
Jan 21, 2021, 7:43:41 AM1/21/21
to ope...@googlegroups.com
The server uses the default R behavior of install.packages() which
installs Depends/Imports but not Suggests. Indeed, if this package is
required in your webapp it has to be in Imports. So if you don't want
it to be a strong dependency in your current R package, I would
recommend to extract the webapp into a separate package, which depends
both on your package and rio.
> --
> You received this message because you are subscribed to the Google Groups "opencpu" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to opencpu+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/opencpu/0be417e7-0887-4d28-8488-209326f8c925n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages