ErwinKomen / RU-MultiL

0 stars 0 forks source link

Back end: small issues #36

Open ErwinKomen opened 9 months ago

ErwinKomen commented 9 months ago

A list of small issues to address in the R code back-end:

  1. Predictor should use target_or_child_system (instead of target_or_child). See functions.R line 187
  2. Predictor target_language results in an error message with toFixed in JS
  3. The same goes for predictor surface_overlap_author
ErwinKomen commented 9 months ago

Implementation

Predictor target_or_child_system

  1. Changed in functions.R
  2. uploaded to ~/labdas/multil_rcalc/assets
  3. and more importantly, to ~/aws-lambda-container-cdk/assets (why to two locations?)
  4. Run do_build.sh in the latter directory
    1. Problem with error message about not being able to find yum
    2. Resolution: make sure that the correct al (amazon linux) OS is selected in the Dockerfile on the first line
      1. That seems to be: public.ecr.aws/lambda/provided:al2.2022.05.26.14-x86_64
    3. Problem: tidyverse is not there.
      1. Need installing: fontconfig-devel, harfbuzz-devel, fribidi-devel
      2. And now: freetype-devel, libpng-devel, libtiff-devel, libjpeg-devel
        1. But freetype and libpng were already there
        2. Only libtiff-devel and libjpg needed adding