Skip to content

Commit

Permalink
Wraped the examples which open a browser with interactive() clause
Browse files Browse the repository at this point in the history
  • Loading branch information
nareal committed May 16, 2021
1 parent 455d8ca commit 1b13e88
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
6 changes: 4 additions & 2 deletions R/download_french_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ print.french_dataset <- function(x, ...) {
#'
#' @examples
#' \donttest{
#' ff_3f <- download_french_data('Fama/French 3 Factors')
#' browse_details_page(ff_3f)
#' if(interactive()){
#' ff_3f <- download_french_data('Fama/French 3 Factors')
#' browse_details_page(ff_3f)
#' }
#' }
#'
#' @export
Expand Down
4 changes: 3 additions & 1 deletion R/french_data_list.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ print.french_data_list <- function(x, ...) {
#'
#' @examples
#' \donttest{
#' browse_french_site()
#' if(interactive()){
#' browse_french_site()
#' }
#' }
#'
#' @export
Expand Down
6 changes: 4 additions & 2 deletions man/browse_details_page.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion man/browse_french_site.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1b13e88

Please sign in to comment.