Skip to content

Commit e1b5019

Browse files
committed
package description language
1 parent c6e1aa2 commit e1b5019

File tree

5 files changed

+19
-18
lines changed

5 files changed

+19
-18
lines changed

DESCRIPTION

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ Description: R binding for NNG (Nanomsg Next Gen), a successor to ZeroMQ. NNG is
88
concurrency framework for building distributed applications, utilising 'aio'
99
objects which resolve automatically upon completion of asynchronous
1010
operations. Provides synchronisation primitives which allow R to wait upon
11-
socket events or message receives signalled by other underlying threads.
11+
socket events or message receives being signalled by other underlying
12+
threads.
1213
Authors@R:
1314
c(person(given = "Charlie",
1415
family = "Gao",

R/nanonext-package.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
#' concurrency framework for building distributed applications, utilising
2525
#' 'aio' objects which resolve automatically upon completion of asynchronous
2626
#' operations. Provides synchronisation primitives which allow R to wait
27-
#' upon socket events or message receives signalled by other underlying
28-
#' threads.
27+
#' upon socket events or message receives being signalled by other
28+
#' underlying threads.
2929
#'
3030
#' @section Usage notes:
3131
#'

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ knitr::opts_chunk$set(
2222
[![codecov](https://codecov.io/gh/shikokuchuo/nanonext/branch/main/graph/badge.svg)](https://app.codecov.io/gh/shikokuchuo/nanonext)
2323
<!-- badges: end -->
2424

25-
R binding for NNG (Nanomsg Next Gen), a successor to ZeroMQ. NNG is a socket library implementing high-performance scalability protocols, a cross-platform standard for messaging and communications. Serves as a concurrency framework for building distributed applications, utilising 'aio' objects which resolve automatically upon completion of asynchronous operations. Provides synchronisation primitives which allow R to wait upon socket events or message receives signalled by other underlying threads.
25+
R binding for NNG (Nanomsg Next Gen), a successor to ZeroMQ. NNG is a socket library implementing high-performance scalability protocols, a cross-platform standard for messaging and communications. Serves as a concurrency framework for building distributed applications, utilising 'aio' objects which resolve automatically upon completion of asynchronous operations. Provides synchronisation primitives which allow R to wait upon socket events or message receives being signalled by other underlying threads.
2626

2727
Designed for performance and reliability, the NNG library is written in C and {nanonext} is a lightweight zero-dependency wrapper. Provides the interface for code and processes to communicate with each other - receive data generated in Python, perform analysis in R, and send results to a C++ program – all on the same computer or on networks spanning the globe.
2828

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ cross-platform standard for messaging and communications. Serves as a
1919
concurrency framework for building distributed applications, utilising
2020
‘aio’ objects which resolve automatically upon completion of
2121
asynchronous operations. Provides synchronisation primitives which allow
22-
R to wait upon socket events or message receives signalled by other
23-
underlying threads.
22+
R to wait upon socket events or message receives being signalled by
23+
other underlying threads.
2424

2525
Designed for performance and reliability, the NNG library is written in
2626
C and {nanonext} is a lightweight zero-dependency wrapper. Provides the
@@ -369,7 +369,7 @@ aio
369369
#> < recvAio >
370370
#> - $data for message data
371371
aio$data |> str()
372-
#> num [1:100000000] 0.367 -0.967 -1.123 -1.016 -1.009 ...
372+
#> num [1:100000000] 0.741 -0.123 0.41 -0.82 -0.109 ...
373373
```
374374

375375
As `call_aio()` is blocking and will wait for completion, an alternative
@@ -653,11 +653,11 @@ ncurl("https://httpbin.org/headers")
653653
#> [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
654654
#> [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
655655
#> [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
656-
#> [76] 2d 36 34 31 64 39 38 32 34 2d 34 66 37 35 30 37 37 38 32 63 39 34 62 35 37
657-
#> [101] 33 36 33 37 35 64 37 31 35 22 0a 20 20 7d 0a 7d 0a
656+
#> [76] 2d 36 34 31 64 39 62 38 39 2d 33 32 39 38 36 33 35 36 35 31 37 35 61 35 63
657+
#> [101] 64 30 39 36 64 31 34 32 38 22 0a 20 20 7d 0a 7d 0a
658658
#>
659659
#> $data
660-
#> [1] "{\n \"headers\": {\n \"Host\": \"httpbin.org\", \n \"X-Amzn-Trace-Id\": \"Root=1-641d9824-4f7507782c94b5736375d715\"\n }\n}\n"
660+
#> [1] "{\n \"headers\": {\n \"Host\": \"httpbin.org\", \n \"X-Amzn-Trace-Id\": \"Root=1-641d9b89-329863565175a5cd096d1428\"\n }\n}\n"
661661
```
662662

663663
For advanced use, supports additional HTTP methods such as POST or PUT.
@@ -678,13 +678,13 @@ res
678678

679679
call_aio(res)$headers
680680
#> $Date
681-
#> [1] "Fri, 24 Mar 2023 12:31:33 GMT"
681+
#> [1] "Fri, 24 Mar 2023 12:46:02 GMT"
682682
#>
683683
#> $Server
684684
#> [1] "gunicorn/19.9.0"
685685

686686
res$data
687-
#> [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-641d9825-18dd512a143d4966197d9566\"\n }, \n \"json\": {\n \"key\": \"value\"\n }, \n \"origin\": \"131.111.5.14\", \n \"url\": \"http://httpbin.org/post\"\n}\n"
687+
#> [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-641d9b8a-2943c4756324ceec68482488\"\n }, \n \"json\": {\n \"key\": \"value\"\n }, \n \"origin\": \"131.111.5.14\", \n \"url\": \"http://httpbin.org/post\"\n}\n"
688688
```
689689

690690
In this respect, it may be used as a performant and lightweight method
@@ -710,7 +710,7 @@ transact(sess)
710710
#>
711711
#> $headers
712712
#> $headers$date
713-
#> [1] "Fri, 24 Mar 2023 12:31:34 GMT"
713+
#> [1] "Fri, 24 Mar 2023 12:46:03 GMT"
714714
#>
715715
#>
716716
#> $raw
@@ -721,14 +721,14 @@ transact(sess)
721721
#> [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
722722
#> [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
723723
#> [151] 6e 2d 54 72 61 63 65 2d 49 64 22 3a 20 22 52 6f 6f 74 3d 31 2d 36 34 31 64
724-
#> [176] 39 38 32 36 2d 35 65 62 32 63 32 33 34 37 36 36 62 65 33 38 63 31 62 61 33
725-
#> [201] 32 31 61 66 22 0a 20 20 7d 2c 20 0a 20 20 22 6f 72 69 67 69 6e 22 3a 20 22
724+
#> [176] 39 62 38 62 2d 37 64 66 32 33 34 37 66 31 35 30 61 64 38 30 36 33 64 63 62
725+
#> [201] 31 36 66 30 22 0a 20 20 7d 2c 20 0a 20 20 22 6f 72 69 67 69 6e 22 3a 20 22
726726
#> [226] 37 39 2e 31 37 33 2e 31 32 39 2e 32 22 2c 20 0a 20 20 22 75 72 6c 22 3a 20
727727
#> [251] 22 68 74 74 70 73 3a 2f 2f 68 74 74 70 62 69 6e 2e 6f 72 67 2f 67 65 74 22
728728
#> [276] 0a 7d 0a
729729
#>
730730
#> $data
731-
#> [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-641d9826-5eb2c234766be38c1ba321af\"\n }, \n \"origin\": \"131.111.5.14\", \n \"url\": \"https://httpbin.org/get\"\n}\n"
731+
#> [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-641d9b8b-7df2347f150ad8063dcb16f0\"\n }, \n \"origin\": \"131.111.5.14\", \n \"url\": \"https://httpbin.org/get\"\n}\n"
732732
```
733733

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

man/nanonext-package.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.

0 commit comments

Comments
 (0)