Skip to content

Releases: growthcharts/james

v1.6.0

15 Apr 16:10
Compare
Choose a tag to compare

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.

james 1.5.10

12 Apr 15:10
Compare
Choose a tag to compare

james 1.5.10

  • Fixes a bug during initialization of children > 4y (#29)

james 1.5.9

  • Removes unused code from index.html
  • Uses defer option for start.js and moves it into the head
  • Moves styling from index.html to main.css
  • 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)
  • Removes allegro blend (#20)
  • Returns txt, session and site in blend response as strings (#21)

james 1.5.8

  • Introduces throttling of 3 sec for checkbox, sliders and radio buttons
  • Transfers all event binding functionality from index.html into start.js

james 1.5.7

  • Refactors JS code #26

james 1.5.6

  • Changes the version update so that the JAMES package has the same version as the JAMES docker

james 0.70.1 (= james 1.5.5)

  • Resolves the WFH sequence problem when later height is shorter (#24)

james 0.70.0

  • Resolves Error in eval(predvars, data, env) : object 'hgt_z_0' not found (#23)

james 0.69.0

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.

Resolves R error when there are no data

Solves issue #19 which appears when JAMES cannot find the child data.

Simplified update logic

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 1.5.6 because controls were not properly updated.

Cosmetic changes

  • Added JAMES, version and copyright note to "Meldingen"
  • Removed the superfluous header "GROEIDIAGRAMMEN" from the left panel

More informative NEWS.md

james 0.68.2

  • Adds a check and warning if the stored OpenCPU session does not contain data created by read_bds()

james 0.68.1

  • Updates all packages and renv to CRAN version March 2024

james 0.68.0

  • Updates all packages, includes growthscreener 1.20.0, which include language development guideline
  • Version meant to test and solve various implementation issues reported by K Nienhuis, okt 2023

james 0.67.0

  • Adds support for the validate and intermediate flags to upload_data()
  • Updates to faster and cleaner bdsreader 0.23.0 package

JAMES 1.5.2

12 Jun 12:46
Compare
Choose a tag to compare

Release notes

JAMES 1.5.2 links R package james 0.66.0.

This is the first release. I include all previous NEWS items below.

james 0.66.0

Solves problems with the javascript interface

  1. The interface did not select the correct chart for lollypop children.
    The problem was related to an incorrect gestational age field in the demodata.
    The bdsreader::write_bds() was refactored. All demodata were updated with
    the correct values.

  2. Made a change in the data schema: Reference --> reference to adhere to camelCase in BDS schema

  3. Added a new possibility to run the javascript interface in the local environment.
    See ../notes/debug-javascript.qmd for details.

  4. Repaired the chartcode field in the interface

james 0.65.0

  • Repairs some error in the JSON schema V2.0 and V3.0 by an update to bdsreader 0.19.0

james 0.64.0

Two major enhancements

  • Adds support for JSON schema V3.0 by updating to bdsreader 0.18.0
  • Replaces Dutch D-score charts by GSED Phase 1 references and charts

james 0.63.0

  • Resolves a problem with the weight-for-age references for 0-15 months
  • Updates JAMES to latest R packages

james 0.62.0

  • Add pathname in URL construction to make JAMES browsers requests reachable when URL is something like htpps:https://site/path/request.

james 0.61.0

A few changes intended to support external hosting of JS functionality:

  • Make the href locations of index.html, css and js relative to /var/www/html. The directory james/www should be copied into /var/www/html/app to make JAMES work.
  • Support CORS with hostname in ocpu.seturl()

james 0.60.0

  • Refreshes renv.lock by starting from fresh library
  • Tweak test to pass windows conf

james 0.59.2

  • Version used to build james docker 1.3.0
  • Update packages
  • Make library snapshot, update renv.lock

james 0.59.1

  • Update all packages
  • Make new library snapshot

james 0.59.0

  • Update all packages
  • Make new library snapshot

james 0.58.2

  • Make sitehost in request_site() work with URL path

james 0.58.1

  • Update README and documentation to JAMES API 1.2.0

james 0.58.0

  • Changes to make an isolated http API
  • Allows for host names such as https://myhost/module with a partial path
  • Reads OpenCPU session from the local file system
  • Removes host arguments to functions
  • Removes host parameter from javascript calls
  • Introduces sitehost argument for request_site()
  • Update to jamesclient 0.30.0

james 0.57.0

  • Makes host definitions consistent everywhere as https://myhost
  • Uses txt, host, session, format argument sequence in all functions
  • Obtains current host and protocol from javascript URL
  • Replaces uloc session indicator by uses (user session)
  • Adds arguments scheme, host and session to convert_tgt_chartadvice()
  • Renames $key to $session in JS

james 0.56.0

Breaking changes

  • Uses generalised httr response object as defined in jamesclient 0.26.1
  • Replaces loc parameter by session parameter
  • Adds deprecated notes about the loc parameter
  • Replaces all calls to jamesclient::upload_txt() by jamesclient::james_post()
  • Update renv.lock with jamesclient and other R package updates
  • Adds processing steps for new session query argument

Other changes

  • Moves all deprecated functions into deprecated.R
  • Creates new internal.R to bundle internal helpers
  • Removes superfluous preloads.R
  • Adapts the last_dscore calculation to work with psn and xyz list components

james 0.55.0

  • Updates to renv 0.15.2
  • Update to current R packages

james 0.54.0

  • Upgrades james.groeidiagrammen.nl to https

james 0.53.0

  • Adds host names ijgz.eaglescience.nl and james.groeidiagrammen.nl to get_host()

james 0.52.1

  • Updates documentation of request_blend()

james 0.52.0

  • Breaking change is data structure
  • Change data structure of read_bds() to a simple list to ease standard JSON representation
  • Adapt various JAMES functions to work with change to simple list
  • Update to bdsreader 0.17.0
  • Update renv.lock

james 0.51.2

  • Remove chart element from request_blend() because of problems with the JSON representation

james 0.51.1

  • Return chart from request_blend() now contains SVG instead of grob

james 0.51.0

  • Add request_blend() that acts like a one-stop-shop
  • Deprecate custom_list() in favour of request_blend()
  • Add messages that indicate removal of deprecated function in Sept 2022

james 0.49.0

  • Replace screen_curves() and screen_growth() by apply_screeners()
  • Make relevant screener parameters visible in james package

james 0.48.1

  • Block passing of \dots to chartbox::list_charts()

james 0.48.0

  • Copy over all arguments from bdsreader::read_bds() to upload_data()
  • Update documentation
  • Do not pass down \dots to jsonlite::FROMjson()

james 0.47.0

  • Decrecate fetch_loc() by the better-named upload_data()

james 0.46.3

  • Update docs for fetch_loc()

james 0.46.2

  • Pass down arguments in all functions using \dots
  • Sync to jamesclient 0.23.0

james 0.46.1

  • Sync to bdsreader 0.14.0 and jamesclient 0.22.0

james 0.46.0

  • Adds list_screeners() to produce overview of JGZ guidelines

james 0.45.4

  • Send dots in fetch_loc(...) to bdsreader::read_bds(...)

james 0.45.3

  • Solve authentication bug in validate_chartcode()

james 0.45.2

  • Vectorise and export validate_chartcode()

james 0.45.1

  • Update renv.lock to jamesclient 0.20.0

james 0.45.0

  • Solves a bug in bdsreader that prevented reading data from a URL

james 0.44.1

  • Adds a version() function

james 0.44.0

  • Increase dependencies to bdsreader 0.11.0 and jamesclient 0.18.0

james 0.43.3

  • Prevent "the condition has length > 1 and only the first element will be used" in draw_chart()

james 0.43.2

  • Adds forgotten authenticate to draw_chart()
  • Updates renv.lock to chartplotter 0.28.0

james 0.43.1

  • Update renv to donorloader 0.31.1

james 0.43.0

  • Update renv to brokenstick 2.0.0

james 0.41.1

  • Adds an explicit authToken argument for list_charts()

james 0.42.0

  • Refreshes the public key for Eaglescience integration
  • Solves a problem with token validation

james 0.41.0

  • Builds in fall back in case pubkey is not given to authenticate
  • Changes argument jwt to authToken for easy integration

james 0.40.0

  • Repairs a problem with bdsreader that prevented D-score calculation with format = "2.0"

james 0.39.0

  • Adds authentication of externally facing services with a JSON web token

james 0.38.0

  • Adds full stack of Down Syndrome charts to javascript site

james 0.37.0

Major changes

  • Adds support for data formats "1.0" (Allegro Sultum), "1.1" (numeric version) and "2.0" (Eaglescience)
  • Introduces the format argument to bds_read() and bds_write()
  • Introduces auto_format as a way to minimise confusion about the data format

Minor changes

  • Uses longer paths in the javascript header to deal with Apache rewrites

james 0.36.0

  • Update to R 4.1.0
  • Solves a bug that resulted from changes in the internal format of the grid package. The james package now depends on grid 4.1.0 and hence on R >= 4.1.

james 0.35.0

  • Checks spelling and updates word list
  • Adds token to GHA R-CMD-CHECK
  • Removes LICENCE file, which makes CMD-CHECK complain
  • Install V8 lib in linux workflow

james 0.34.0

  • Update dependency versions
  • Removes unneeded nlreferences dependency

james 0.33.0

  • Tranfers repo to growthcharts organisation
  • Adds schema argument to users facing functions, set bds_schema_str.json as default
  • Adds automatic GHA R CMD check
  • Cleans out error so that R CMD check runs without errors

james 0.32.0

  • Breaking changes
  • Replaces jamestest dependency by jamesdemodata package
  • Replaces minihealth dependency by bdsreader package
  • Styles all files
  • Switches to markdown documentation
  • Uses localhost in examples (localhost should be on)

james 0.31.0

  • Removes clopus dependency

james 0.30.0

  • Uses the nlreferences package

james 0.29.1

  • Simplifies testing condition in draw_chart()

james 0.29.0

  • Includes svglite dependency as needed by the javascript calls

james 0.28.2

  • Downgrades to chartplotter 0.15.0

james 0.28.1

  • Includes jamesyzy dependency

james 0.28.0

  • Switches to an age-related choice for donordata: 0-2, 2-4 and 4-18.

james 0.27.1

  • Repairs a problem in the slider_list initialisation

james 0.27.0

  • Combines lollypop.term and lollypop.preterm into lollypop
  • Simplifies donordata menu
  • Renames "anthropometric" to "automatic"

james 0.26.0

  • Solves a bug that prevented proper initialisation for 1-21y charts

james 0.25.0

Major changes:

  • Splits the site output into "Groei", "Ontwikkeling" and "Voorspeller"
  • Add function fetch_loc() as a replacement for upload_txt() and convert_bds_ind()
  • Add function screen_growth() as a replacement for screen_curves()
  • Add function calculate_dscore()
  • Add table of primary user functions to README
  • Add table of legacy functions indicating preferred alternatives
  • Run styler on all R sources
  • Move out upload_txt() to jamesclient package
  • Transfer toJSON() call in custom_list() to its caller screen_curves(), so custom_list() doesn't anymore JSONify the function result

Minor changes

...

Read more