Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Commit

Permalink
CRAN release 0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Sep 25, 2023
1 parent 09e96c4 commit 0ee4b3e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: mirai.promises
Type: Package
Title: Make 'Mirai' 'Promises'
Version: 0.3.0.9000
Version: 0.3.1
Description: Allows 'mirai' objects encapsulating asynchronous computations,
from the 'mirai' package by Gao (2023) <doi:10.5281/zenodo.7912722>, to be
used interchangeably with 'promise' objects from the 'promises' package by
Expand Down
3 changes: 2 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# mirai.promises 0.3.0.9000 (development)
# mirai.promises 0.3.1

* Documents that importing `polling()` in a package allows access to the S3 methods.
* Depends on `mirai` and `promises` so no longer necessary to attach all 3 packages.

# mirai.promises 0.3.0
Expand Down
4 changes: 2 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ This app takes c. 2s to start compared to the 8s it would otherwise take if the

The auxiliary function `polling()` may be used to customise the frequency with which to poll for promise resolution (defaults to every 100 ms).

Package authors wishing to use the S3 methods contained within this package may simply import the `polling()` function to make them available.

```{r example, eval=FALSE}
library(mirai.promises)
library(shiny)
Expand Down Expand Up @@ -87,8 +89,6 @@ server <- function(input, output, session) {
shinyApp(ui = ui, server = server)
```

Package authors wishing to use the S3 methods contained within this package may simply import the `polling()` function to make them available.

### Thanks

[Daniel Falbel](https://github.com/dfalbel/) for the original version of the above example and agreeing to its use here, as well as the specific use case that motivated this package.
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ The auxiliary function `polling()` may be used to customise the
frequency with which to poll for promise resolution (defaults to every
100 ms).

Package authors wishing to use the S3 methods contained within this
package may simply import the `polling()` function to make them
available.

``` r
library(mirai.promises)
library(shiny)
Expand Down Expand Up @@ -85,10 +89,6 @@ server <- function(input, output, session) {
shinyApp(ui = ui, server = server)
```

Package authors wishing to use the S3 methods contained within this
package may simply import the `polling()` function to make them
available.

### Thanks

[Daniel Falbel](https://github.com/dfalbel/) for the original version of
Expand Down

0 comments on commit 0ee4b3e

Please sign in to comment.