Support for multiple R files and for renv::restore()?
slodge opened this issue · 4 comments
slodge commented
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 👍