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

RStudio hangs during RMarkdown check without internet access #2288

coatless opened this issue Feb 27, 2018 · 3 comments


None yet
3 participants
Copy link

commented Feb 27, 2018

System details

RStudio Edition : Desktop
RStudio Version :  1.2.140
OS Version      :  CentOS 7
R Version       : 3.4.3

Steps to reproduce the problem

  1. Disconnect from the internet for over a two weeks after installing RStudio and rmarkdown.
  2. Try creating a new RMarkdown document using File => New File => R Markdown
  3. Watch it hang.


Describe the problem in detail

The client crashes when trying to open a new RMarkdown notebook when offline for a prolonged amount of time.

Describe the behavior you expected

If RStudio is not able to connect to the internet, this check should not be run or it should not time out causing the client to crash.


This comment has been minimized.

Copy link

commented Feb 28, 2018

I'm guessing you can trigger the same behavior with something like:


as that can hang when there is no internet connectivity. I'm not sure if there's a good way for us to handle this (or check if the system has internet connectivity altogether)


This comment has been minimized.

Copy link

commented Feb 28, 2018

@kevinushey we're running into this issue in our computer-based testing facility (CBTF). The facility blocks outbound connections unless they fall in certain use cases. I'll test this out tomorrow and get back to you.

@dfalty dfalty added the bug label Feb 28, 2018


This comment has been minimized.

Copy link

commented Mar 1, 2018

So, it seems like the available.packages() code bugs out on first run. The subsequent run in the same session returns an error as expected.


If I use a different document type initially and then switch it to a .Rmd, e.g. .R to .Rmd, the inline code engine works. However, pressing Knit returns the hang issue.

After a prolonged time, I slowly start to get prompts from RStudio about mirror issues:


With this being said, it looks like some request managed to get through at some point because a prompt is being issued that packages are out-of-date?


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.