Skip to content

Error: object 'vars.available' not found in dagitty() on macOS 11 with R 4.4.2 #103

@CWWhitney

Description

@CWWhitney

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions