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

Suggesstion for improvement in manual #94

Open
ar0berts opened this issue May 30, 2024 · 0 comments
Open

Suggesstion for improvement in manual #94

ar0berts opened this issue May 30, 2024 · 0 comments

Comments

@ar0berts
Copy link

The example in dagitty::dagitty works fine if there are no quoted numbers but fails if a dag is copied from dagitty.net.

please change the examples given from:

# Specify a simple DAG containing one path g <- dagitty("dag{ a -> b ; b -> c ; d -> c }")

to

# Specify a simple DAG containing one path g <- dagitty('dag{ a -> b ; b -> c ; d -> c }')

(and the same for the other examples)

This enables text copied from the web version to be pasted in without throwing an Error: unexpected numeric constant in: error:

library(dagitty, ggdag) d<-dagitty('dag { bb="0,0,1,1" cause [exposure,pos="0.218,0.247"] effect [outcome,pos="0.552,0.513"] mediator [pos="0.507,0.202"] cause -> mediator mediator -> effect }')

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant