Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deploying to shinyapps.io not recognising dependencies #209

Closed
PaulC91 opened this issue Jan 15, 2019 · 6 comments
Closed

deploying to shinyapps.io not recognising dependencies #209

PaulC91 opened this issue Jan 15, 2019 · 6 comments
Labels
effort: high 4+ days of work

Comments

@PaulC91
Copy link

PaulC91 commented Jan 15, 2019

Hi there,

I'm getting this warning message when trying to deploy a tutorial to shinyapps.io

In fileDependencies.R(tempfile) :
  Failed to parse /tmp/RtmpCboJHd/file40a4e0bd9fb ; dependencies in this file will not be discovered.

Which is resulting in the app failing to start with error message:

Error in value[[3L]](cond) : there is no package called ‘dplyr’

I have library(dplyr) in my tutorial setup chunk and have tried deploying from various computers (windows and linux) but the problem persists.

Thanks.

@jarrenls
Copy link

jarrenls commented Feb 6, 2019

I'm getting this same message when trying to deploy a learnr tutorial over to shinyapps.io. Whenever I try to load in any R package, it gives this same issue, same error message, and same deploy log message.

Some packages that I tried: dplyr, ipumsr, ggplot2

EDIT: I should note that this occurs when I have code chunks where a "fill in the blank" is incorporated. For example, my exercise won't run if I have a code chunk with:

head(
  # Put your answer here
)

However, it will run if you have something there:

head(
  mtcars
)

@PaulC91
Copy link
Author

PaulC91 commented Feb 6, 2019

Ah so it's the invalid R code caused by 'fill in the blank' sections that are the problem. Good to know.

The workaround I used was to have the learnr tutorial source files in an RStudio Cloud project I was also using for the workshop I was taking and then have each student launch the tutorial locally from their personal cloud space.

@kaushik12
Copy link

We are developing lessons for courses in a Stats program at NYU. Ran into the same issue when pushing to shinyapps.io. Hoping it gets resolved soon.

@schloerke
Copy link
Collaborator

The issue is in packrat. Working on a fix in rstudio/packrat#551

@schloerke
Copy link
Collaborator

Now requiring a dev packrat version (which isn't used directly, just during deployment).

Please let me know if this dependency problem is not resolved with the last master branch.

Closing for now.

@kaushik12
Copy link

Yes, it's working now! Thanks for your help with this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort: high 4+ days of work
Projects
None yet
Development

No branches or pull requests

4 participants