Skip to content

Commit f1abeb3

Browse files
committed
more efficient matcharg algorithm
1 parent 294c172 commit f1abeb3

File tree

3 files changed

+71
-350
lines changed

3 files changed

+71
-350
lines changed

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ install.packages("nanonext", repos = "https://shikokuchuo.r-universe.dev")
7272

7373
### Interfaces
7474

75-
Call `nano_init()` after package load to set global options. Using defaults will cause warnings to print immediately as they occur.
75+
Call `nano_init()` after package load to set global options such as causing warnings to print immediately as they occur.
7676

7777
{nanonext} offers 2 equivalent interfaces: an object-oriented interface, and a functional interface.
7878

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ install.packages("nanonext", repos = "https://shikokuchuo.r-universe.dev")
7474

7575
### Interfaces
7676

77-
Call `nano_init()` after package load to set global options. Using
78-
defaults will cause warnings to print immediately as they occur.
77+
Call `nano_init()` after package load to set global options such as
78+
causing warnings to print immediately as they occur.
7979

8080
{nanonext} offers 2 equivalent interfaces: an object-oriented interface,
8181
and a functional interface.
@@ -379,7 +379,7 @@ aio
379379
#> < recvAio >
380380
#> - $data for message data
381381
aio$data |> str()
382-
#> num [1:100000000] 0.1703 -0.0154 0.0138 -0.3083 -0.1477 ...
382+
#> num [1:100000000] -0.876 0.565 0.656 -1.265 -0.642 ...
383383
```
384384

385385
As `call_aio()` is blocking and will wait for completion, an alternative
@@ -516,11 +516,11 @@ ncurl("http://httpbin.org/headers")
516516
#> [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
517517
#> [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
518518
#> [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
519-
#> [76] 2d 36 32 36 39 34 30 66 39 2d 32 37 38 31 35 33 34 36 36 61 31 61 35 38 35
520-
#> [101] 35 30 39 38 34 30 66 35 62 22 0a 20 20 7d 0a 7d 0a
519+
#> [76] 2d 36 32 36 61 62 33 31 37 2d 31 39 63 35 39 37 30 32 36 63 30 63 64 65 32
520+
#> [101] 63 36 32 61 37 33 39 35 35 22 0a 20 20 7d 0a 7d 0a
521521
#>
522522
#> $data
523-
#> [1] "{\n \"headers\": {\n \"Host\": \"httpbin.org\", \n \"X-Amzn-Trace-Id\": \"Root=1-626940f9-278153466a1a585509840f5b\"\n }\n}\n"
523+
#> [1] "{\n \"headers\": {\n \"Host\": \"httpbin.org\", \n \"X-Amzn-Trace-Id\": \"Root=1-626ab317-19c597026c0cde2c62a73955\"\n }\n}\n"
524524
```
525525

526526
For advanced use, supports additional HTTP methods such as POST or PUT.
@@ -535,7 +535,7 @@ res
535535
#> - $raw for raw message
536536

537537
call_aio(res)$data
538-
#> [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-626940f9-73f729e64784f75507dcee00\"\n }, \n \"json\": {\n \"key\": \"value\"\n }, \n \"origin\": \"79.173.189.204\", \n \"url\": \"http://httpbin.org/post\"\n}\n"
538+
#> [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-626ab317-57e5ea9a6c08c36277518b08\"\n }, \n \"json\": {\n \"key\": \"value\"\n }, \n \"origin\": \"79.173.189.204\", \n \"url\": \"http://httpbin.org/post\"\n}\n"
539539
```
540540

541541
In this respect, it may be used as a performant and lightweight method

0 commit comments

Comments
 (0)