Skip to content

Commit c6e1aa2

Browse files
committed
streamline package description
1 parent 043b827 commit c6e1aa2

File tree

5 files changed

+37
-34
lines changed

5 files changed

+37
-34
lines changed

DESCRIPTION

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ Type: Package
33
Title: NNG (Nanomsg Next Gen) Lightweight Messaging Library
44
Version: 0.8.0.9001
55
Description: R binding for NNG (Nanomsg Next Gen), a successor to ZeroMQ. NNG is
6-
a socket library providing high-performance scalability protocols,
7-
implementing a cross-platform standard for messaging and communications.
8-
Serves as a concurrency framework for building distributed applications,
9-
utilising 'aio' objects which resolve automatically upon completion of
10-
asynchronous operations. Provides synchronisation primitives which allow R
11-
to wait upon socket events or message receives being signalled by other
12-
underlying threads.
6+
a socket library implementing high-performance scalability protocols, a
7+
cross-platform standard for messaging and communications. Serves as a
8+
concurrency framework for building distributed applications, utilising 'aio'
9+
objects which resolve automatically upon completion of asynchronous
10+
operations. Provides synchronisation primitives which allow R to wait upon
11+
socket events or message receives signalled by other underlying threads.
1312
Authors@R:
1413
c(person(given = "Charlie",
1514
family = "Gao",

R/nanonext-package.R

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
#' nanonext: NNG (Nanomsg Next Gen) Lightweight Messaging Library
2020
#'
2121
#' R binding for NNG (Nanomsg Next Gen), a successor to ZeroMQ. NNG is a socket
22-
#' library providing high-performance scalability protocols, implementing a
22+
#' library implementing high-performance scalability protocols, a
2323
#' cross-platform standard for messaging and communications. Serves as a
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 being signalled by other
28-
#' underlying threads.
27+
#' upon socket events or message receives signalled by other underlying
28+
#' threads.
2929
#'
3030
#' @section Usage notes:
3131
#'
@@ -46,9 +46,11 @@
4646
#'
4747
#' Guide to the implemented protocols for sockets: \link{protocols}
4848
#'
49-
#' Guide to the supported transports for dialers and listeners: \link{transports}
49+
#' Guide to the supported transports for dialers and listeners:
50+
#' \link{transports}
5051
#'
51-
#' Guide to the options that can be set using: \link{opt<-}
52+
#' Guide to the options that can be inspected and set using: \link{opt} /
53+
#' \link{opt<-}
5254
#'
5355
#' @section Conceptual overview:
5456
#'

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 providing high-performance scalability protocols, implementing 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.
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.
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: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ badge](https://shikokuchuo.r-universe.dev/badges/nanonext?color=3f72af)](https:/
1414
<!-- badges: end -->
1515

1616
R binding for NNG (Nanomsg Next Gen), a successor to ZeroMQ. NNG is a
17-
socket library providing high-performance scalability protocols,
18-
implementing a cross-platform standard for messaging and communications.
19-
Serves as a concurrency framework for building distributed applications,
20-
utilising ‘aio’ objects which resolve automatically upon completion of
17+
socket library implementing high-performance scalability protocols, a
18+
cross-platform standard for messaging and communications. Serves as a
19+
concurrency framework for building distributed applications, utilising
20+
‘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 being signalled by
23-
other underlying threads.
22+
R to wait upon socket events or message receives signalled by other
23+
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.9135 -0.0486 -2.2213 -0.247 0.6944 ...
372+
#> num [1:100000000] 0.367 -0.967 -1.123 -1.016 -1.009 ...
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 34 35 37 2d 36 63 64 61 33 38 30 34 30 62 35 37 65 66 62
657-
#> [101] 62 35 39 31 37 38 65 39 30 22 0a 20 20 7d 0a 7d 0a
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
658658
#>
659659
#> $data
660-
#> [1] "{\n \"headers\": {\n \"Host\": \"httpbin.org\", \n \"X-Amzn-Trace-Id\": \"Root=1-641d9457-6cda38040b57efbb59178e90\"\n }\n}\n"
660+
#> [1] "{\n \"headers\": {\n \"Host\": \"httpbin.org\", \n \"X-Amzn-Trace-Id\": \"Root=1-641d9824-4f7507782c94b5736375d715\"\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:15:20 GMT"
681+
#> [1] "Fri, 24 Mar 2023 12:31:33 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-641d9458-5f205e8b7bfe624f5f89a231\"\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-641d9825-18dd512a143d4966197d9566\"\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:15:20 GMT"
713+
#> [1] "Fri, 24 Mar 2023 12:31:34 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 34 35 38 2d 37 63 35 38 34 30 31 34 37 63 33 38 30 64 61 63 36 30 32 34
725-
#> [201] 36 39 62 63 22 0a 20 20 7d 2c 20 0a 20 20 22 6f 72 69 67 69 6e 22 3a 20 22
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
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-641d9458-7c5840147c380dac602469bc\"\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-641d9826-5eb2c234766be38c1ba321af\"\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: 7 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)