Skip to content

Commit

Permalink
skip long-running example
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpcouch committed Jun 9, 2023
1 parent 9ac5781 commit 2d05946
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/fixest-tidiers.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#' fixed effects, see \url{https://github.com/lrberge/fixest/issues/6} and
#' \url{https://github.com/sgaure/lfe/issues/1#issuecomment-530646990})
#'
#' @examplesIf rlang::is_installed("fixest")
#' @examplesIf rlang::is_installed("fixest") & !broom:::is_cran_check()
#'
#' # load libraries for models and data
#' library(fixest)
Expand Down
12 changes: 12 additions & 0 deletions R/utilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ exponentiate <- function(data, col = "estimate") {
#' @return A `tibble` potentially with a `.rownames` column
#' @noRd
#'


as_augment_tibble <- function(data) {
if (inherits(data, "matrix") & is.null(colnames(data))) {
stop(
Expand Down Expand Up @@ -61,6 +63,16 @@ as_augment_tibble <- function(data) {
df
}

# adapted from ps:::is_cran_check()
is_cran_check <- function() {
if (identical(Sys.getenv("NOT_CRAN"), "true")) {
FALSE
}
else {
Sys.getenv("_R_CHECK_PACKAGE_NAME_", "") != ""
}
}

#' Convert a data.frame or matrix to a tibble
#'
#' This function is meant for use inside `tidy.*` methods.
Expand Down
2 changes: 1 addition & 1 deletion man/augment.fixest.Rd

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

2 changes: 1 addition & 1 deletion man/glance.fixest.Rd

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

2 changes: 1 addition & 1 deletion man/tidy.fixest.Rd

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

0 comments on commit 2d05946

Please sign in to comment.