Skip to content

Issues using surveydown with renv #276

Description

@virginiascarlett

This is not so much a request for action as it is just sharing my experience. I've noticed that working with surveydown in an renv environment is tricky. The following procedure did not work for me on my Mac:

open empty project folder in Rstudio or Positron
renv::init()
install.packages('surveydown')
surveydown::sd_create_survey()
Hit 'Run App' in GUI

Resulting app looks like this:

Image

The trick was that I had to also install this stuff:
renv::install(c("bslib", "sass", "htmltools", "jquerylib"))

Then I deleted the cached files in _survey/ and ran again, and all the correct styling was present.

I wanted to test whether this was reproducible on a Linux VM, but I couldn't even properly install surveydown in an renv environment in that case--a bunch of dependencies failed to install--and I didn't have time to troubleshoot it (installing globally, without renv, worked just fine.)

Like I said, no action is needed from the maintainers. Just leaving this here in case anyone else is having trouble installing surveydown dependencies with renv. Make sure that you've got all the dependencies, because renv might not install everything for you.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions