dagtex icon indicating copy to clipboard operation
dagtex copied to clipboard

Error when trying to apply shape to node

Open tpfeeney opened this issue 5 years ago • 0 comments

dagtex() %>% 
  add_node(int) %>% 
  add_node(exp, right_of = int) %>% 
  add_node(out,right_of = exp) %>% 
  add_node(C2, , shape="rectangle",above = int) %>% 
  add_edge(C2,int) %>% 
  add_edge(C2,out, is_curved = TRUE,curve = "down") %>% 
  add_edge(int,exp)
#> Error in dagtex() %>% add_node(int) %>% add_node(exp, right_of = int) %>% : could not find function "%>%"
#> Error in dagtex() %>% add_node(int) %>% add_node(exp, right_of = int) %>% : could not find function "%>%"

Created on 2020-02-19 by the reprex package (v0.3.0)

When trying to show adjustment of node "C2" by adding shape="rectangle" it throws an error "Error in tex_preview.default(latex_code, usrPackages = pkg_opts, density = density, :

! Package pgfkeys Error: I do not know the key '/tikz/drawleft', to which you p assed 'of 1', and I am going to ignore it. Perhaps you misspelled it.

See the pgfkeys package documentation for explanation. Type H for immediate help. ...

l.8 \node[rectangle, drawleft =of 1] (4) {C2}; ! ==> Fatal error occurred, no output PDF file produced!"

tpfeeney avatar Feb 20 '20 03:02 tpfeeney