Skip to content

CRAN release 0.3.0

Choose a tag to compare

@shikokuchuo shikokuchuo released this 10 Mar 12:17
· 1714 commits to main since this release
c005e8c

nanonext 0.3.0

New Features

  • Aio values $result, $data and $raw now resolve automatically without requiring call_aio(). Access directly and an 'unresolved' logical NA value will be returned if the Aio operation is yet to complete.
  • unresolved() added as an auxiliary function to query whether an Aio is unresolved, for use in control flow statements.
  • Integer error values generated by receive functions are now classed 'errorValue'. is_error_value() helper function included.
  • is_nul_byte() added as a helper function for request/reply setups.
  • survey_time() added as a convenience function for surveyor/respondent patterns.
  • logging() function to specify a global package logging level - 'error' or 'info'. Automatically checks the environment variable 'NANONEXT_LOG' on package load and then each time logging(level = "check") is called.
  • ncurl() adds a '...' argument. Support for HTTP methods other than GET.

Updates

  • listen() and dial() now return (invisible) zero rather than NULL upon success for consistency with other functions.
  • Options documentation entry renamed to opts to avoid clash with base R 'options'.
  • Common format for NNG errors and informational events now starts with a timestamp for easier logging.
  • Allows setting the environment variable 'NANONEXT_ARM' prior to package installation
    • Fixes installation issues on certain ARM architectures
  • Package installation using a system 'libnng' now automatically detects 'libmbedtls', removing the need to manually set 'NANONEXT_TLS' in this case.
  • More streamlined NNG build process eliminating unused options.
  • Removes experimental nng_timer() utility as a non-essential function.
  • Deprecated functions 'send_vec' and 'recv_vec' removed.