Skip to content

Check capabilities before generating plot reprs#3

Merged
flying-sheep merged 2 commits intoIRkernel:masterfrom
takluyver:plot-capabilities-guards
Apr 26, 2015
Merged

Check capabilities before generating plot reprs#3
flying-sheep merged 2 commits intoIRkernel:masterfrom
takluyver:plot-capabilities-guards

Conversation

@takluyver
Copy link
Member

Closes IRkernel/IRkernel#96, hopefully.

R/recordedplot.r Outdated
Copy link
Member Author

Choose a reason for hiding this comment

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

I assume this being FALSE would mean we couldn't generate a png - likewise for jpeg below.

Copy link
Member

Choose a reason for hiding this comment

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

yeah, although i can’t imagine what setup would result in this being false… embedded R? 😆

yeah, you can configure it to build without but i doubt anyone using repr would ever do this. still, why not put the check in?

@flying-sheep
Copy link
Member

won’t work. try if (!capabilities('png')) return(NULL)

@takluyver
Copy link
Member Author

Thanks, fixed.

We should work on some automated tests for this, but that can be after the release. I'll file a separate issue.

@jankatins jankatins mentioned this pull request Apr 26, 2015
10 tasks
@flying-sheep flying-sheep merged commit 13bfd3e into IRkernel:master Apr 26, 2015
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.

Kernel dying with every plotting command

2 participants