Skip to content

Commit 3c984bd

Browse files
committed
CRAN release 0.8.3
1 parent b2b20df commit 3c984bd

File tree

6 files changed

+27
-36
lines changed

6 files changed

+27
-36
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
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.8.2.9017
4+
Version: 0.8.3
55
Description: R binding for NNG (Nanomsg Next Gen), a successor to ZeroMQ. NNG is
66
a socket library providing high-performance scalability protocols, a
77
cross-platform standard for messaging and communications. Serves as a

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# nanonext 0.8.2.9017 (development)
1+
# nanonext 0.8.3
22

33
#### New Features
44

README.Rmd

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,6 @@ In such a case, calling or querying the value confirms that the operation has co
314314

315315
The {mirai} package <https://shikokuchuo.net/mirai/> (<https://cran.r-project.org/package=mirai>) uses {nanonext} as the back-end to provide asynchronous execution of arbitrary R code using the RPC model.
316316

317-
The {crew} package <https://wlandau.github.io/crew/> (<https://cran.r-project.org/package=crew>) by William Landau further extends {mirai} to different computing platforms for distributed workers.
318-
319317
[&laquo; Back to ToC](#table-of-contents)
320318

321319
### Synchronisation Primitives
@@ -654,7 +652,7 @@ stat(s, "pipes")
654652

655653
#### Linux / Mac / Solaris
656654

657-
Installation from source requires 'libnng' >= v1.6.0 and 'libmbedtls' >= 2 - suitable installations are automatically detected - or else 'cmake' to compile 'libnng' v1.6.0 pre-release (8e1836f) [alpha (c5e9d8a) in dev version] and 'libmbedtls' v3.2.1 [v3.4.0 in dev version] included within the package sources.
655+
Installation from source requires 'libnng' >= v1.6.0 and 'libmbedtls' >= 2 - suitable installations are automatically detected - or else 'cmake' to compile 'libnng' v1.6.0 alpha (c5e9d8a) and 'libmbedtls' v3.4.0 included within the package sources.
658656

659657
Note: 'libnng' v1.6.0 is not yet available in system repositories; 'libmbedtls' is available as libmbedtls-dev (deb) or libmbedtls-devel (rpm).
660658

@@ -668,9 +666,9 @@ Package installation will automatically build the libraries if required.
668666

669667
#### Windows
670668

671-
For R >= 4.2 using the 'Rtools42' or 'Rtools43' toolchains, 'libnng' v1.6.0 (8e1836f) [alpha (c5e9d8a) in dev version] and 'libmbedtls' v3.2.1 [v3.4.0 in dev version] will be automatically compiled from the package sources during installation.
669+
For R >= 4.2 using the 'Rtools42' or 'Rtools43' toolchains, 'libnng' v1.6.0 alpha (c5e9d8a) and 'libmbedtls' v3.4.0 will be automatically compiled from the package sources during installation.
672670

673-
For previous R versions, pre-compiled 'libnng' v1.6.0 (8e1836f) [alpha (c5e9d8a) in dev version] and 'libmbedtls' v3.2.1 [v3.4.0 in dev version] libraries are downloaded and used for installation instead.
671+
For previous R versions, pre-compiled 'libnng' v1.6.0 alpha (c5e9d8a) and 'libmbedtls' v3.4.0 libraries are downloaded and used for installation instead.
674672

675673
[&laquo; Back to ToC](#table-of-contents)
676674

README.md

Lines changed: 18 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ aio
368368
#> < recvAio >
369369
#> - $data for message data
370370
aio$data |> str()
371-
#> num [1:100000000] -1.137 0.427 0.254 -0.912 0.382 ...
371+
#> num [1:100000000] 0.85 0.994 0.498 1.802 -0.144 ...
372372
```
373373

374374
As `call_aio()` is blocking and will wait for completion, an alternative
@@ -387,11 +387,6 @@ The {mirai} package <https://shikokuchuo.net/mirai/>
387387
back-end to provide asynchronous execution of arbitrary R code using the
388388
RPC model.
389389

390-
The {crew} package <https://wlandau.github.io/crew/>
391-
(<https://cran.r-project.org/package=crew>) by William Landau further
392-
extends {mirai} to different computing platforms for distributed
393-
workers.
394-
395390
[« Back to ToC](#table-of-contents)
396391

397392
### Synchronisation Primitives
@@ -654,11 +649,11 @@ ncurl("https://httpbin.org/headers")
654649
#> [1] 7b 0a 20 20 22 68 65 61 64 65 72 73 22 3a 20 7b 0a 20 20 20 20 22 48 6f 73
655650
#> [26] 74 22 3a 20 22 68 74 74 70 62 69 6e 2e 6f 72 67 22 2c 20 0a 20 20 20 20 22
656651
#> [51] 58 2d 41 6d 7a 6e 2d 54 72 61 63 65 2d 49 64 22 3a 20 22 52 6f 6f 74 3d 31
657-
#> [76] 2d 36 34 34 36 64 39 33 32 2d 33 30 39 33 32 34 31 65 35 66 32 63 63 31 62
658-
#> [101] 31 34 64 65 63 30 64 34 39 22 0a 20 20 7d 0a 7d 0a
652+
#> [76] 2d 36 34 35 36 33 37 34 31 2d 34 36 33 34 36 39 31 66 36 63 37 36 36 30 37
653+
#> [101] 32 33 64 32 34 61 62 32 30 22 0a 20 20 7d 0a 7d 0a
659654
#>
660655
#> $data
661-
#> [1] "{\n \"headers\": {\n \"Host\": \"httpbin.org\", \n \"X-Amzn-Trace-Id\": \"Root=1-6446d932-3093241e5f2cc1b14dec0d49\"\n }\n}\n"
656+
#> [1] "{\n \"headers\": {\n \"Host\": \"httpbin.org\", \n \"X-Amzn-Trace-Id\": \"Root=1-64563741-4634691f6c7660723d24ab20\"\n }\n}\n"
662657
```
663658

664659
For advanced use, supports additional HTTP methods such as POST or PUT.
@@ -679,13 +674,13 @@ res
679674

680675
call_aio(res)$headers
681676
#> $Date
682-
#> [1] "Mon, 24 Apr 2023 19:32:03 GMT"
677+
#> [1] "Sat, 06 May 2023 11:17:27 GMT"
683678
#>
684679
#> $Server
685680
#> [1] "gunicorn/19.9.0"
686681

687682
res$data
688-
#> [1] "{\n \"args\": {}, \n \"data\": \"{\\\"key\\\": \\\"value\\\"}\", \n \"files\": {}, \n \"form\": {}, \n \"headers\": {\n \"Authorization\": \"Bearer APIKEY\", \n \"Content-Length\": \"16\", \n \"Content-Type\": \"application/json\", \n \"Host\": \"httpbin.org\", \n \"X-Amzn-Trace-Id\": \"Root=1-6446d933-2b431bb5216a771c647f2402\"\n }, \n \"json\": {\n \"key\": \"value\"\n }, \n \"origin\": \"131.111.5.14\", \n \"url\": \"http://httpbin.org/post\"\n}\n"
683+
#> [1] "{\n \"args\": {}, \n \"data\": \"{\\\"key\\\": \\\"value\\\"}\", \n \"files\": {}, \n \"form\": {}, \n \"headers\": {\n \"Authorization\": \"Bearer APIKEY\", \n \"Content-Length\": \"16\", \n \"Content-Type\": \"application/json\", \n \"Host\": \"httpbin.org\", \n \"X-Amzn-Trace-Id\": \"Root=1-64563742-3979941e4cd984a4053d85a6\"\n }, \n \"json\": {\n \"key\": \"value\"\n }, \n \"origin\": \"131.111.5.14\", \n \"url\": \"http://httpbin.org/post\"\n}\n"
689684
```
690685

691686
In this respect, it may be used as a performant and lightweight method
@@ -711,7 +706,7 @@ transact(sess)
711706
#>
712707
#> $headers
713708
#> $headers$date
714-
#> [1] "Mon, 24 Apr 2023 19:32:03 GMT"
709+
#> [1] "Sat, 06 May 2023 11:17:28 GMT"
715710
#>
716711
#>
717712
#> $raw
@@ -721,15 +716,15 @@ transact(sess)
721716
#> [76] 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 3a 20 22 61 70 70 6c 69 63 61 74
722717
#> [101] 69 6f 6e 2f 6a 73 6f 6e 22 2c 20 0a 20 20 20 20 22 48 6f 73 74 22 3a 20 22
723718
#> [126] 68 74 74 70 62 69 6e 2e 6f 72 67 22 2c 20 0a 20 20 20 20 22 58 2d 41 6d 7a
724-
#> [151] 6e 2d 54 72 61 63 65 2d 49 64 22 3a 20 22 52 6f 6f 74 3d 31 2d 36 34 34 36
725-
#> [176] 64 39 33 33 2d 33 37 30 31 66 39 33 30 33 33 38 64 34 31 63 66 32 37 34 39
726-
#> [201] 62 61 64 39 22 0a 20 20 7d 2c 20 0a 20 20 22 6f 72 69 67 69 6e 22 3a 20 22
719+
#> [151] 6e 2d 54 72 61 63 65 2d 49 64 22 3a 20 22 52 6f 6f 74 3d 31 2d 36 34 35 36
720+
#> [176] 33 37 34 37 2d 30 65 30 65 61 36 36 30 34 39 63 65 36 30 36 31 36 62 61 30
721+
#> [201] 62 39 36 32 22 0a 20 20 7d 2c 20 0a 20 20 22 6f 72 69 67 69 6e 22 3a 20 22
727722
#> [226] 31 38 35 2e 32 32 35 2e 34 35 2e 34 39 22 2c 20 0a 20 20 22 75 72 6c 22 3a
728723
#> [251] 20 22 68 74 74 70 73 3a 2f 2f 68 74 74 70 62 69 6e 2e 6f 72 67 2f 67 65 74
729724
#> [276] 22 0a 7d 0a
730725
#>
731726
#> $data
732-
#> [1] "{\n \"args\": {}, \n \"headers\": {\n \"Authorization\": \"Bearer APIKEY\", \n \"Content-Type\": \"application/json\", \n \"Host\": \"httpbin.org\", \n \"X-Amzn-Trace-Id\": \"Root=1-6446d933-3701f930338d41cf2749bad9\"\n }, \n \"origin\": \"131.111.5.14\", \n \"url\": \"https://httpbin.org/get\"\n}\n"
727+
#> [1] "{\n \"args\": {}, \n \"headers\": {\n \"Authorization\": \"Bearer APIKEY\", \n \"Content-Type\": \"application/json\", \n \"Host\": \"httpbin.org\", \n \"X-Amzn-Trace-Id\": \"Root=1-64563747-0e0ea66049ce60616ba0b962\"\n }, \n \"origin\": \"131.111.5.14\", \n \"url\": \"https://httpbin.org/get\"\n}\n"
733728
```
734729

735730
[« Back to ToC](#table-of-contents)
@@ -888,9 +883,8 @@ stat(s, "pipes")
888883

889884
Installation from source requires ‘libnng’ \>= v1.6.0 and ‘libmbedtls’
890885
\>= 2 - suitable installations are automatically detected - or else
891-
‘cmake’ to compile ‘libnng’ v1.6.0 pre-release (8e1836f) \[alpha
892-
(c5e9d8a) in dev version\] and ‘libmbedtls’ v3.2.1 \[v3.4.0 in dev
893-
version\] included within the package sources.
886+
‘cmake’ to compile ‘libnng’ v1.6.0 alpha (c5e9d8a) and ‘libmbedtls’
887+
v3.4.0 included within the package sources.
894888

895889
Note: ‘libnng’ v1.6.0 is not yet available in system repositories;
896890
‘libmbedtls’ is available as libmbedtls-dev (deb) or libmbedtls-devel
@@ -917,13 +911,12 @@ MBEDTLS_SSL_DTLS_CONNECTION_ID_COMPAT 0.*
917911
#### Windows
918912

919913
For R \>= 4.2 using the ‘Rtools42’ or ‘Rtools43’ toolchains, ‘libnng’
920-
v1.6.0 (8e1836f) \[alpha (c5e9d8a) in dev version\] and ‘libmbedtls’
921-
v3.2.1 \[v3.4.0 in dev version\] will be automatically compiled from the
922-
package sources during installation.
914+
v1.6.0 alpha (c5e9d8a) and ‘libmbedtls’ v3.4.0 will be automatically
915+
compiled from the package sources during installation.
923916

924-
For previous R versions, pre-compiled ‘libnng’ v1.6.0 (8e1836f) \[alpha
925-
(c5e9d8a) in dev version\] and ‘libmbedtls’ v3.2.1 \[v3.4.0 in dev
926-
version\] libraries are downloaded and used for installation instead.
917+
For previous R versions, pre-compiled ‘libnng’ v1.6.0 alpha (c5e9d8a)
918+
and ‘libmbedtls’ v3.4.0 libraries are downloaded and used for
919+
installation instead.
927920

928921
[« Back to ToC](#table-of-contents)
929922

src/nanonext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#define NANONEXT_H
2121

2222
#ifdef NANONEXT_INTERNALS
23-
#define NANONEXT_VERSION "0.8.2.9017"
23+
#define NANONEXT_VERSION "0.8.3"
2424
#include <nng/nng.h>
2525
#endif
2626

src/tls.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424

2525
SEXP rnng_version(void) {
2626

27-
char mbed_version[18];
28-
mbedtls_version_get_string_full(mbed_version);
27+
char mbed_version_string[18];
28+
mbedtls_version_get_string_full(mbed_version_string);
2929
SEXP version;
3030
PROTECT(version = Rf_allocVector(STRSXP, 2));
3131
SET_STRING_ELT(version, 0, Rf_mkChar(nng_version()));
32-
SET_STRING_ELT(version, 1, Rf_mkChar(mbed_version));
32+
SET_STRING_ELT(version, 1, Rf_mkChar(mbed_version_string));
3333
UNPROTECT(1);
3434

3535
return version;

0 commit comments

Comments
 (0)