I'm encountering an error when using the dagitty package on macOS 11 with the latest R 4.4.2 binary. Every time I try to create a simple DAG, I get the following error:
Error in get("vars.available", .dagitty.cache) : object 'vars.available' not found
I am using R 4.4.2 (binary for macOS 11) on a Mac with version 15.3.1 (build 24D70).
An example (from the help files):
library(dagitty) dag <- dagitty("dag { a -> b; b -> c; d -> c }")
What I Have Tried:
- Restarting the R session and my machine
- Updating macOS
- Removing and reinstalling dagitty from CRAN
- Manually initializing the cache with:
if (!exists("vars.available", envir = .dagitty.cache)) { assign("vars.available", character(0), envir = .dagitty.cache) }
- Installing the GitHub version via
remotes::install_github("jtextor/dagitty/r")
I get the same errors after all these steps...
Any help in resolving this issue would be greatly appreciated. Thanks!
I'm encountering an error when using the dagitty package on macOS 11 with the latest R 4.4.2 binary. Every time I try to create a simple DAG, I get the following error:
Error in get("vars.available", .dagitty.cache) : object 'vars.available' not foundI am using R 4.4.2 (binary for macOS 11) on a Mac with version 15.3.1 (build 24D70).
An example (from the help files):
library(dagitty) dag <- dagitty("dag { a -> b; b -> c; d -> c }")What I Have Tried:
if (!exists("vars.available", envir = .dagitty.cache)) { assign("vars.available", character(0), envir = .dagitty.cache) }remotes::install_github("jtextor/dagitty/r")I get the same errors after all these steps...
Any help in resolving this issue would be greatly appreciated. Thanks!