Comments (4)
Packages to be installed are supposed to be listed in the variable R_PACKAGES
(originally defined in settings_default.sh
).
The code to install them is located in the second part of the script 11_install_packages.sh
which indicates the lib
path, etc.
from aws-lambda-r.
Yes, I read the code in all the files under /scripts, but I could not find out how exactly how it's supposed to work and which syntax to use.
from aws-lambda-r.
how exactly how it's supposed to work
In setup_user.sh
define a variable R_PACKAGES
as shown in settings_default.sh
. For example:
# do not use commas or quotes, leave spaces before and after each package name
R_PACKAGES=( jsonlite purrr digest )
Then, you can run the main script 01_main.sh
.
If you want to use the auto-setup, run any of scripts 21_setup_vpc.sh
, 22_setup_custom_ami.sh
, 23_setup_s3.sh
, 24_setup_lambda.sh
, as needed before runnig the main script.
from aws-lambda-r.
Great! Thanks! I only intend to use 11 and 12 (or if it was 13..). Then shut the EC2 down and develop on my local computer with AWS SAM. I already have aws-sam-cli, R and Python on my Mac, so I just have to invoke the phyton lambda to see that it works and then deploy it.
Unfortunately, the python aws sam has bugs that stop that scenario.
from aws-lambda-r.
Related Issues (20)
- check size of files within zip
- lambda only, no api
- setup lambda / api scripts HOT 2
- fail if AWS cannot update lambda / API gateway
- detailed documentation
- use a bash ini processor to load & save settings HOT 2
- Automatically Integrate API Gateway with Cloud Watch
- return images (PNG) not only JSON HOT 2
- error creating Lambda Role HOT 3
- Error on transferring Python 3.6 to custom image HOT 3
- Understand EC2 needs HOT 2
- reconsider building packages via docker? HOT 1
- Running setup_user.sh PRJ_NAME: command not found HOT 7
- Call resources from within the R script? HOT 2
- secrets in echo/log HOT 1
- fail if yum cannot install linux packages
- fail if R cannot install packages
- install R packages from github
- better R application
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-lambda-r.