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

engine='dot' as only chunk fails #874

Closed
WilDoane opened this issue Oct 24, 2014 · 2 comments
Closed

engine='dot' as only chunk fails #874

WilDoane opened this issue Oct 24, 2014 · 2 comments
Labels
bug Bugs
Milestone

Comments

@WilDoane
Copy link

An Rmd file with only one chunk and where that chunk uses engine='dot' fails because the temporary directory for output images doesn't get created (or so it seems).

FAILS


---
output: pdf_document

---
This relies upon Graphviz already being installed and launchable from the CLI

```{r exdot, engine='dot'}
digraph test {
  main -> "subproject #3" -> c;
  a -> z -> d -> c;
  c -> a;
  c -> z;
  f;
  b -> d;
  c -> d;
  d -> end;
  {rank=same; a z d}
}

```

Error Output

processing file: Using_Graphviz.Rmd
running: "dot" ".\codeee454e538c9" -Tpdf -o"./Using_Graphviz_files/figure-latex/exdot-1.pdf"
Error: Could not open "./Using_Graphviz_files/figure-latex/exdot-1.pdf" for writing : No such file or directory
Quitting from lines 7-19 (Using_Graphviz.Rmd) 
Error in (knit_engines$get(options$engine))(options) : 
  failed to compile content
Calls: <Anonymous> ... process_group.block -> call_block -> block_exec -> in_dir -> <Anonymous>
In addition: Warning message:
running command '"dot" ".\codeee454e538c9" -Tpdf -o"./Using_Graphviz_files/figure-latex/exdot-1.pdf"' had status 1 

Execution halted

SUCCESS


---
output: pdf_document

---
This relies upon Graphviz already being installed and launchable from the CLI

```{r}
plot(runif(10))
```
```{r exdot, engine='dot'}
digraph test {
  main -> "subproject #3" -> c;
  a -> z -> d -> c;
  c -> a;
  c -> z;
  f;
  b -> d;
  c -> d;
  d -> end;
  {rank=same; a z d}
}

```

System Config

> session_info()
Session info---------------------------------------------------------------------------------
 setting  value                       
 version  R version 3.1.1 (2014-07-10)
 system   i386, mingw32               
 ui       RStudio (0.98.1062)         
 language (EN)                        
 collate  English_United States.1252  
 tz       America/New_York            

Packages-------------------------------------------------------------------------------------
 package    * version  date       source                            
 devtools   * 1.6.1    2014-10-07 CRAN (R 3.1.1)                    
 digest       0.6.4    2013-12-03 CRAN (R 3.1.0)                    
 htmltools    0.2.6    2014-09-08 CRAN (R 3.1.1)                    
 httr         0.5      2014-09-02 CRAN (R 3.1.1)                    
 RCurl        1.95.4.3 2014-07-29 CRAN (R 3.1.1)                    
 rmarkdown    0.3.3    2014-09-29 Github (rstudio/rmarkdown@fd8dafd)
 rstudioapi   0.1      2014-03-27 CRAN (R 3.1.1)                    
 stringr      0.6.2    2012-12-06 CRAN (R 3.1.0)                    
 yaml         2.1.13   2014-06-12 CRAN (R 3.1.0)                    
@WilDoane WilDoane changed the title engine='dot' fails engine='dot' as only chunk fails Oct 24, 2014
@yihui yihui added this to the v1.8 milestone Oct 25, 2014
@yihui yihui added the bug Bugs label Oct 25, 2014
@yihui yihui closed this as completed in 35e2925 Oct 26, 2014
@yihui
Copy link
Owner

yihui commented Oct 26, 2014

Thanks! It should be fixed now.

@github-actions
Copy link

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Bugs
Projects
None yet
Development

No branches or pull requests

2 participants