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

Check if RStudio is running before calling its API. #596

Merged
merged 3 commits into from
Mar 1, 2021

Conversation

kcarnold
Copy link
Contributor

@kcarnold kcarnold commented Mar 1, 2021

I have a Makefile to build pages in my blogdown site. I was getting an error "RStudio is not running" in some circumstances.

This patch checks if rstudioapi is available before calling it. I'm confused why this else condition is even there; under what circumstance is interactive() false while running within RStudio? The Knit button?

Copy link
Member

@yihui yihui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

under what circumstance is interactive() false while running within RStudio? The Knit button?

Yes. Thanks!

R/site.R Outdated Show resolved Hide resolved
@yihui yihui merged commit 19f5298 into rstudio:master Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants