Skip to content

Commit d51473e

Browse files
committed
CRAN release 0.7.1
1 parent b73d32c commit d51473e

File tree

11 files changed

+33
-33
lines changed

11 files changed

+33
-33
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: nanonext
22
Type: Package
33
Title: NNG (Nanomsg Next Gen) Lightweight Messaging Library
4-
Version: 0.7.0.9000
4+
Version: 0.7.1
55
Description: R binding for NNG (Nanomsg Next Gen), a successor to ZeroMQ. NNG is
66
a socket library providing high-performance scalability protocols,
77
implementing a cross-platform standard for messaging and communications.
@@ -25,4 +25,4 @@ SystemRequirements: 'libnng' >= 1.6.0 and 'libmbedtls' >= 2, or 'cmake' to
2525
compile NNG and/or Mbed TLS included in package sources
2626
Depends:
2727
R (>= 2.5)
28-
RoxygenNote: 7.2.1
28+
RoxygenNote: 7.2.2

NEWS.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
1-
# nanonext 0.7.0.9000 (development)
1+
# nanonext 0.7.1
22

33
#### New Features
44

5-
* Implements `getopt()`, which is the counterpart to `setopt()` for retrieving options set on objects.
6-
* The `setopt()` interface is simplified, with the type now inferred from the value supplied.
5+
* Implements `getopt()`, the counterpart to `setopt()` for retrieving the value of options on objects.
76

87
#### Updates
98

10-
* `ncurl()` changes to return redirect addresses as the response header 'Location'. This is so any additional information provided can now be available at `$data`.
9+
* The `setopt()` interface is simplified, with the type now inferred from the value supplied.
10+
* `ncurl()` now returns redirect addresses as the response header 'Location'. This is so that HTTP data can also be returned at `$data` where this is provided.
1111
* Eliminates CRAN 'additional issue' (clang/gcc-UBSAN).
1212
* Internal performance optimisations.
1313

1414
# nanonext 0.7.0
1515

16-
*nanonext 0.7 implements API optimisations after recent enhancements; the API is again intended to remain stable after these changes*
17-
1816
#### New Features
1917

2018
* `status_code()` utility returns a translation of HTTP response status codes.
@@ -37,7 +35,7 @@
3735

3836
*Other changes:*
3937

40-
* Integer `send()`/`recv()` arguments for 'mode' and `setopt()` arguments for 'type' implemented in 0.5.3 are now documented and considered part of the API. This is a performance feature that skips matching the character argument value.
38+
* Integer `send()`/`recv()` arguments for 'mode' implemented in 0.5.3 are now documented and considered part of the API. This is a performance feature that skips matching the character argument value.
4139
* Fixes bug introduced in 0.6.0 where Aios returning 'errorValues' are not cached with the class, returning only integer values when accessed subsequently.
4240
* Fixes potential crash when `base64dec()` encounters invalid input data. Error messages have been revised to be more accurate.
4341
* Fixes the `$` method for 'recvAio' objects for when the object has been stopped using `stop_aio()`.
@@ -49,8 +47,6 @@
4947

5048
# nanonext 0.6.0
5149

52-
*The nanonext 0.6 series incorporates significant advances in performance and stability over previous releases*
53-
5450
#### New Features
5551

5652
* Implements `base64enc()` and `base64dec()` base64 encoding and decoding using the 'Mbed TLS' library.
@@ -134,8 +130,6 @@
134130

135131
# nanonext 0.5.0
136132

137-
*nanonext is now considered substantially feature-complete and API-stable*
138-
139133
#### New Features
140134

141135
* `$context()` method added for creating new contexts from nano Objects using supported protocols (i.e. req, rep, sub, surveyor, respondent) - this replaces the `context()` function for nano Objects.

R/aio.R

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ recv_aio <- function(con,
129129
#' Retrieve the value of an asynchronous Aio operation, waiting for the
130130
#' operation to complete if still in progress.
131131
#'
132-
#' @param aio An Aio (object of class 'sendAio' or 'recvAio').
132+
#' @param aio an Aio (object of class 'sendAio' or 'recvAio').
133133
#'
134134
#' @return The passed object (invisibly).
135135
#'
@@ -188,7 +188,7 @@ call_aio <- function(aio) invisible(.Call(rnng_aio_call, aio))
188188
#'
189189
#' Stop an asynchronous Aio operation.
190190
#'
191-
#' @param aio An Aio (object of class 'sendAio' or 'recvAio').
191+
#' @inheritParams call_aio
192192
#'
193193
#' @return Invisible NULL.
194194
#'
@@ -209,13 +209,14 @@ stop_aio <- function(aio) invisible(.Call(rnng_aio_stop, aio))
209209
#' Query whether an Aio or Aio value remains unresolved. Unlike
210210
#' \code{\link{call_aio}}, this function does not wait for completion.
211211
#'
212-
#' @param aio An Aio (object of class 'sendAio' or 'recvAio'), or Aio value
212+
#' @param aio an Aio (object of class 'sendAio' or 'recvAio'), or Aio value
213213
#' stored in \code{$result}, \code{$raw} or \code{$data} as the case may be.
214214
#'
215-
#' @return Logical TRUE or FALSE.
215+
#' @return Logical TRUE if 'aio' is an unresolved Aio or Aio value, or FALSE
216+
#' otherwise.
216217
#'
217-
#' @details Returns TRUE for unresolved Aios or Aio values, FALSE otherwise.
218-
#' Suitable for use in control flow statements such as \code{while} or \code{if}.
218+
#' @details Suitable for use in control flow statements such as \code{while} or
219+
#' \code{if}.
219220
#'
220221
#' Note: querying resolution may cause a previously unresolved Aio to resolve.
221222
#'

R/opts.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
#' @param object a Socket, Context, Stream, Listener or Dialer.
2424
#' @param opt name of option, e.g. 'reconnect-time-min', as a character string.
2525
#' See \link{opts}.
26-
#' @param value value of option.
26+
#' @param value value of option. Supply character type for 'string' options,
27+
#' integer or double for 'int', 'duration', 'size' and 'uint64', and logical
28+
#' for 'bool'.
2729
#'
2830
#' @return Invisibly, an integer exit code (zero on success).
2931
#'
@@ -68,7 +70,7 @@ setopt <- function(object, opt, value)
6870
#' @inheritParams setopt
6971
#'
7072
#' @return The value of the option (logical for type 'bool', integer for 'int',
71-
#' 'ms' and 'size', character for 'string' and double for 'uint64').
73+
#' 'duration' and 'size', character for 'string' and double for 'uint64').
7274
#'
7375
#' @details To get options for a Listener or Dialer attached to a Socket or nano
7476
#' object, pass in the objects directly via for example \code{$listener[[1]]}

R/utils.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ nng_error <- function(xc) .Call(rnng_strerror, xc)
5050
#' Clock Utility
5151
#'
5252
#' Provides the number of elapsed milliseconds since an arbitrary reference time
53-
#' in the past. The reference time will be the same for a given program, but
54-
#' may differ between programs.
53+
#' in the past. The reference time will be the same for a given session, but
54+
#' may differ between sessions.
5555
#'
5656
#' @details A convenience function for building concurrent applications. The
5757
#' resolution of the clock depends on the underlying system timing facilities

man/call_aio.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/getopt.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/mclock.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/setopt.Rd

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/stop_aio.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)