Skip to content

Commit

Permalink
update NEWS and README (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartnik authored Jan 8, 2017
1 parent 9877bc3 commit 254d0db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@

* converted shared library to C++

* bugfix: group terminate in Windows


# subprocess 0.7.4

* initial submission to CRAN; basic API works in Linux and Windows
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ print(handle)
And here is what the child process has sent so far to its output streams:

```r
process_read(handle, timeout = 1000)
process_read(handle, PIPE_STDOUT, timeout = TIMEOUT_INFINITE)
#> [1] "Welcome to Ubuntu 16.10 (GNU/Linux 4.8.0-27-generic x86_64)"
#> [2] ""
#> [3] " * Documentation: https://help.ubuntu.com"
Expand All @@ -60,7 +60,7 @@ to list files.
```r
process_write(handle, 'ls\n')
#> [1] 3
process_read(handle, timeout = 1000)
process_read(handle, PIPE_STDOUT, timeout = TIMEOUT_INFINITE)
#> [1] "Desktop" "Download" "examples.desktop"
#> [4] "Music" "Public" "Video"
process_read(handle, PIPE_STDERR)
Expand All @@ -78,7 +78,7 @@ We are now ready to close the connection by exiting the remote shell:
```r
process_write(handle, 'exit\n')
#> [1] 5
process_read(handle, timeout = TIMEOUT_INFINITE)
process_read(handle, PIPE_STDOUT, timeout = TIMEOUT_INFINITE)
#> character(0)
process_read(handle, PIPE_STDERR)
#> character(0)
Expand All @@ -87,7 +87,7 @@ process_read(handle, PIPE_STDERR)
The last thing is making sure that the child process is no longer alive:

```r
process_wait(handle)
process_wait(handle, TIMEOUT_INFINITE)
#> [1] 0
process_status(handle)
#> [1] "exited"
Expand Down

0 comments on commit 254d0db

Please sign in to comment.