jtextor / dagitty

Graphical analysis of structural causal models / graphical causal models.
GNU General Public License v2.0
255 stars 47 forks source link

Error: SyntaxError: Invalid or unexpected token #90

Open zhengchencai opened 3 months ago

zhengchencai commented 3 months ago

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
jtextor commented 3 months ago

This could be a problem with the underlying package "V8". Can you please tell me:

guanw921 commented 1 month ago

I got the same issue. My operating system is windows and the output of V8::engine_info() is $version [1] "6.2.414.50"

$numeric_version [1] ‘6.2.414.50’