dagitty
dagitty copied to clipboard
Error: SyntaxError: Invalid or unexpected token
Hello,
I was using dagitty and it was working well. After updating to 0.3.4, I got an error even for the simplest demo DAG. Could you please help? Thanks.
> packageVersion("dagitty")
[1] ‘0.3.4’
> dag <- dagitty::dagitty("dag {
+ y <- x <- z1 <- v -> z2 -> y
+ z1 <- w1 <-> w2 -> z2
+ x <- w1 -> y
+ x <- w2 -> y
+ x [exposure]
+ y [outcome]
+ }")
Error: SyntaxError: Invalid or unexpected token