Skip to content

Add option for linking and executing models through R/Rcpp to avoid admin issues with executables #918

Description

@andrjohns

As discussed in #815 and many other issues and forum posts, users in organisations aren't able to use cmdstanr (or at least not without some difficulty) due to organisational restrictions in running arbitrary executables.

To avoid this, we could add an option to instead execute the model via Rcpp - by linking the compiled object file as an R-compatible DLL via R CMD SHLIB. This is essentially how rstan models are executed.

Much of the minutiae in platform-specific handling for this will be covered in #894, the main complexity will come from plumbing it into the $sample()/$optimize()/etc methods

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions