You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@jtextor For consistency with the dagitty web interface and the most commonly used mathematical notation, and for better readability, I recommend that the dagitty R package use the ⟂ symbol instead of the current _||_ to indicate independence. R supports Unicode, as have all major operating systems for many years.
Unicode actually has at least three related symbols:
A ⊥ B : up tack (U+22A5)
A ⟂ B : perpendicular (U+27C2)
A ⟘ B : large up tack (U+27D8)
I'd recommend using the perpendicular symbol. It's the symbol used by \perp in LaTex and by the Python package with the closest functionality to dagitty.
@jtextor I completely agree that you want to have the dagitty R package work for those with older versions of R. The dagitty package DESCRIPTION file currently specifies R (>= 3.0.0). According to the CRAN manual section you linked to, the Unicode escape \uxxxx is "a portable way to have arbitrary text in character strings (only) in your R code" for R (>= 2.10).
It may be useful to check with the CRAN maintainers to see if having the mathematical symbol \u27c2 in a character string in your R code would present a portability problem for those running R (>= 3.0.0). Rather than never adopting an advance, such as Unicode, the manual seems to suggest the approach of detecting older systems and making character substitutions when necessary.
@jtextor For consistency with the dagitty web interface and the most commonly used mathematical notation, and for better readability, I recommend that the dagitty R package use the ⟂ symbol instead of the current
_||_
to indicate independence. R supports Unicode, as have all major operating systems for many years.Unicode actually has at least three related symbols:
I'd recommend using the perpendicular symbol. It's the symbol used by
\perp
in LaTex and by the Python package with the closest functionality to dagitty.I believe the required change would be:
dagitty/r/R/dagitty.r
Line 2548 in ca4ec74
" _||_ "
->" \U27C2 "
The text was updated successfully, but these errors were encountered: