Skip to content

Check for package dependencies in new_sim #79

Description

@Avi-Kenny

We formerly had a section that looked like this, but removed it because of bugs:

  # Check if dependencies are installed
  for (pkg in tools::package_dependencies(packages="SimEngine")$SimEngine) {
    if (!requireNamespace(pkg, quietly=TRUE)) {
      stop(paste0(
        "You need to install the package '", pkg, "' for SimEngine to work."
      ))
    }
  }
  rm(pkg)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions