Skip to content

v1.6.0

Compare
Choose a tag to compare
@stefvanbuuren stefvanbuuren released this 15 Apr 16:10
· 59 commits to master since this release

james 1.6.0 (Apr 2024)

Visible changes

  • Changes the version number so that the JAMES package has the same version as the JAMES docker
  • Updates to growthscreener 1.21.0, which changes weight for height criteria into weight-for-age
  • Changes the definition and processing of BDS 71 (parental birth land) to provide a string with 4 digits (was numeric and integer previously) to conform to alphanumeric typology in BDS (updates to bdsreader 0.25.0)
  • Introduces throttling of 3 sec for checkbox, sliders and radio buttons
  • Resolves the WFH sequence problem when later height is shorter (#24)
  • Added JAMES, version and copyright note to "Meldingen"
  • Removed the superfluous header "GROEIDIAGRAMMEN" from the left panel
  • Adds a check and warning if the stored OpenCPU session does not contain data created by read_bds()

More informative Meldingen panel

JAMES now writes on Meldingen for rq1 (james::convert_tgt_chartadvice()) and rq2 (james::draw_chart()):

  1. The session ID
  2. The ocpu.call from javascript to the R function
  3. A summary of the response from R
  4. If present: warnings from R
  5. If present: messages from R

Note: The update of "Meldingen" when the call failed does always work, so it may be that "Meldingen" displays the results from the last functional call instead of the failed call. If the request failed, there will be a pop-up window with a stack trace from R.

Internal changes

  • Updates javascript, HTML and CSS for clarity and efficiency
  • Moves styling from index.html to main.css
  • Removes allegro blend (#20)
  • Returns txt, session and site in blend response as strings (#21)
  • Transfers all event binding functionality from index.html into start.js
  • Refactors JS code #26
  • Updates all packages and renv to CRAN version March 2024

Bug fixes

  • Fixes a bug during initialization of children > 4y (#29)
  • Resolves Error in eval(predvars, data, env) : object 'hgt_z_0' not found (#23)
  • Solves issue #19 which appears when JAMES cannot find the child data.

Simplified update logic (failed)

  • The JS call to update() (which draws the chart) is now removed from the call-back function of rq1. Thus, initialization of controls and drawing of charts are now done independently and in parallel. This removes a nested ocpu.call() call, thereby improveing performance.
  • This change was undone in because controls were not properly updated.