Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bnicenboim committed Feb 7, 2024
1 parent bb916de commit edf22e1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions R/plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
#' plot(data_faces_ERPs) +
#' coord_cartesian(ylim = c(-500, 500))
#' @export
plot.eeg_lst <- function(x, ...){
print(ggplot2::autoplot(x, ...))
plot.eeg_lst <- function(x, .max_sample = 6400,...){
print(ggplot2::autoplot(x, .max_sample = .max_sample, ...))
}


Expand Down
2 changes: 2 additions & 0 deletions R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ mne <- NULL
if(requireNamespace("reticulate", quietly = TRUE)){
reticulate::use_condaenv("r-eeguana", required = FALSE)
mne <<- reticulate::import("mne", delay_load = TRUE)

Check warning on line 26 in R/zzz.R

View check run for this annotation

Codecov / codecov/patch

R/zzz.R#L24-L26

Added lines #L24 - L26 were not covered by tests
} else {
mne <<- NULL

Check warning on line 28 in R/zzz.R

View check run for this annotation

Codecov / codecov/patch

R/zzz.R#L28

Added line #L28 was not covered by tests
}

#dplyr styff
Expand Down
6 changes: 3 additions & 3 deletions man/plot.eeg_lst.Rd

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

2 changes: 1 addition & 1 deletion tests/testthat/test_14-load.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
library(eeguana)

test_that("loads without errors", {
expect_null(eeguana:::.onLoad())
## eeguana:::.onLoad()
})

0 comments on commit edf22e1

Please sign in to comment.