Skip to content

Support for multiple R files and for renv::restore()? #25

@slodge

Description

@slodge

I'm currently considering putting a PR together to add support for:

  • multiple files - e.g. a list of mainFunction.R, functions.R, helpers.R, ...
  • renv.lock based dependencies

I was thinking of changing build_lambda (and create_lambda_dockerfile) to take an additional renv_folder parameter, and to allow multiple files in runtime_path - with either the first file as the main entrypoint or with some other way of indicating which file to treat as the main.

I think these should be fairly straightforward to add, but I thought I'd open the PR to check whether this is of interest to r2lambda - or if there are any special or design considerations - before I started on writing any code 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions