dagtex
dagtex copied to clipboard
Error when trying to apply shape to node
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
l.8 \node[rectangle, drawleft =of 1] (4) {C2}; ! ==> Fatal error occurred, no output PDF file produced!"