JuliaInterop / JuliaInterop/JuliaCall

Plot does not produce any output in Julia chunks when used in bookdown documents

Open
#145 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
287
Forks
43
PR merge metrics
No merged PRs in 30d

Description

I'd like to generate Julia plots for a book written with bookdown. The following code

```{julia, dev='png'}
using Plots
gr()
plot(1:10,1:10)

produces the following error:

GKS: file open error (/tmp.pdf)
open: Keine Berechtigung (german for no permission)

Why is there a PDF-File involved although the output file format has been selected to be PNG?

I'm using Julia 1.5.3, R version 3.6.3, and JuliCall 0.17.1.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the supplied Julia chunk in a bookdown document with Julia 1.5.3, R 3.6.3, and JuliCall 0.17.1, then trace how the dev='png' setting reaches Julia's plotting and GKS output handling. Done means the chunk produces the requested PNG without attempting to open /tmp.pdf or raising a permission error.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia, r
Domain
data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.