Git Product home page Git Product logo

Comments (4)

MikeBadescu avatar MikeBadescu commented on August 23, 2024

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.

brorio avatar brorio commented on August 23, 2024

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.

MikeBadescu avatar MikeBadescu commented on August 23, 2024

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.

brorio avatar brorio commented on August 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.