-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from andyquinterom/CRAN_FIXES
chore: Adds fixes needed to publish to CRAN
- Loading branch information
Showing
6 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ export(new_google_config) | |
export(new_openid_config) | ||
export(sso_shiny_app) | ||
export(token) | ||
export(use_futures) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
#' @title Use futures for asynchronous computations | ||
#' @description Enable a future plan for asynchronous computations. | ||
#' Since tapLock needs to do calls to external APIs, it can be a good idea | ||
#' to use future to make the calls asynchronous. | ||
#' | ||
#' This function is just meant as a convenience function for the user. | ||
#' We recommend that you read the documentation for the future package | ||
#' to understand how to use it. | ||
#' @param plan A plan object. Defaults to a multicore plan. | ||
#' @param workers Number of workers to use. Defaults to 1. | ||
#' @return This function is called for its side effect. | ||
#' @export | ||
use_futures <- function(plan = future::multicore, workers = 1) { | ||
future::plan(plan, workers = workers) | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters