Description Usage Arguments Details
This function is a wrapper of individuals functions written in this package. Build bootstrap, dockerfile, build, zipfunction files and put .R lambda file in the folder specified.
1 | build_files(path, lambda)
|
path |
Folder of project that will receive all files |
lambda |
Path to .R file of lambda |
This functions only build files that can't build the necessary zip file to submit to AWS lambda.
"bootstrap" The file it is a shell script that make a request to Lambda API to retrieve the event data, pass that to the .R function and post a response. This script it will be executed at beginning of a Lambda call
"dockerfile" This dockerfile uses a image from lambci and install base R, cran packages and github packages. System requirements must be edited by hand after.
"zipfunction" This file it is a shell script that is responsible to get all R binaries and libs that is necessary to RUN the specified lambda function. ALL SHARED LIBS must be edited by hand after.
"build" This is a shell script that is responsible to build and spin up a container based on the dockerfile early created. Mount necessary folders and executy zip function to package all
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.