Skip to content

Commit

Permalink
regime 2 wip
Browse files Browse the repository at this point in the history
  • Loading branch information
franzbischoff committed Oct 5, 2023
1 parent 327ba06 commit 5636465
Show file tree
Hide file tree
Showing 71 changed files with 55,101 additions and 89,201 deletions.
2 changes: 0 additions & 2 deletions .Rprofile
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,4 @@ if (Sys.getenv("CI") == "") {
)
}



# nolint end
2 changes: 1 addition & 1 deletion .github/R-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
R-4.1
R-4.3
43 changes: 43 additions & 0 deletions .github/linters/.lintr
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
linters: linters_with_defaults(
absolute_path_linter(lax = TRUE),
any_duplicated_linter(),
any_is_na_linter(),
backport_linter(),
class_equals_linter(),
commented_code_linter = NULL,
condition_message_linter(),
consecutive_assertion_linter(),
cyclocomp_linter(50),
duplicate_argument_linter(),
fixed_regex_linter(),
ifelse_censor_linter(),
inner_combine_linter(),
line_length_linter(150),
literal_coercion_linter(),
missing_argument_linter(),
missing_package_linter(),
namespace_linter(),
nested_ifelse_linter(),
nonportable_path_linter(lax = TRUE),
numeric_leading_zero_linter(),
object_length_linter(30),
object_usage_linter = NULL,
outer_negation_linter(),
package_hooks_linter(),
paste_linter(),
pipe_call_linter(),
redundant_ifelse_linter(),
regex_subset_linter(),
semicolon_linter(allow_compound = TRUE),
sprintf_linter(),
string_boundary_linter(),
strings_as_factors_linter(),
system_file_linter(),
undesirable_operator_linter(all_undesirable_operators),
unnecessary_concatenation_linter(),
unreachable_code_linter(),
unused_import_linter(),
yoda_test_linter()
)
exclusions: list("dev", "renv", "R/RcppExports.R", "README.Rmd")

53 changes: 7 additions & 46 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,75 +1,43 @@
# Directories
library/
local/
cellar/
lock/
python/
staging/

# Files
.Rhistory*
.Renviron
.Rapp.history
Pprof.out
Rprof.out

# Session Data files
.RData
.RDataTmp

# User-specific files
.Ruserdata

# Example code in package build process
*-Ex.R

# Output files from R CMD build
/*.tar.gz

# Output files from R CMD check
/*.Rcheck/

# RStudio files
.Rproj.user/

# produced vignettes
vignettes/*.html
vignettes/*.pdf

# OAuth2 token, see https://github.com/hadley/httr/releases/tag/v0.3
*.html
*.pdf
.httr-oauth
.gitconfig

# knitr and R markdown default cache directories
*_cache/
/cache/

# Temporary files created by R markdown
*.utf8.md
*.knit.md

# VSCode
#.vscode/
.vscode/*.log
.devcontainer/exts
.devcontainer/gpg-agent.conf
.devcontainer/gpg.conf

### R.Bookdown Stack ###
# R package: bookdown caching files
/*_files/

# End of https://www.gitignore.io/api/r

# Personalized
tmp
/tmp/
/tmp_*/
.future
debugme.log

#Local history plugin
.history
.radian_history

# use github-actions to build the webpage
/.travis.yml
/R/RcppExports.R
/code/
Expand All @@ -90,15 +58,11 @@ debugme.log
LOCAL_APPDATA_FONTCONFIG_CACHE/
README.html
Rplots.pdf
dev
dev/
dev
packrat/lib*/
packrat/src/
src-*/
workspace.RData

# Workflowr
.DS_Store
analysis/figure
analysis/*png
Expand All @@ -109,7 +73,6 @@ analysis/site_libs
output/*.svg
output/*.rds
protocol/**/*.html
# docs/**/*.svg
protocol/**/*.svg
protocol/**/*.rmarkdown
mpxtest.RData
Expand All @@ -118,8 +81,6 @@ mpxtest.RData
docs/thesis/*.log
docs/thesis/__*.tex
**/rsconnect/**

# Temp
# docs

/.luarc.json
.Rhistory

4 changes: 2 additions & 2 deletions .lintr
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ linters: linters_with_defaults(
class_equals_linter(),
commented_code_linter = NULL,
condition_message_linter(),
consecutive_stopifnot_linter(),
consecutive_assertion_linter(),
cyclocomp_linter(50),
duplicate_argument_linter(),
fixed_regex_linter(),
Expand Down Expand Up @@ -34,7 +34,7 @@ linters: linters_with_defaults(
strings_as_factors_linter(),
system_file_linter(),
undesirable_operator_linter(all_undesirable_operators),
unneeded_concatenation_linter(),
unnecessary_concatenation_linter(),
unreachable_code_linter(),
unused_import_linter(),
yoda_test_linter()
Expand Down
8 changes: 8 additions & 0 deletions .renvignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
/analysis/*/*
!/analysis/*/*.R
/inst/
/dev/
/_*/
/docs/
/tmp/
/output/
/presentations/*/*
!/presentations/*/*.Rmd
!/presentations/*/*.qmd
/thesis/*/*
!/thesis/*/*.Rmd
/.trunk/
/.devcontainer/
/.github/
/renv/
figures
logos
*_files
Expand Down
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"C_Cpp.default.defines": [
"RC_INVOKED"
],
"markdown.validate.enabled": true,
"isGitignoreExtActive": true,
"C_Cpp.intelliSenseEngineFallback": "Enabled",
"editor.formatOnSave": true,
"editor.tabCompletion": "on",
Expand Down
4 changes: 2 additions & 2 deletions analysis/blog-202204.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ if (file.exists(here::here("dev/backtofilters.rds"))) {
} else {
filenames <- find_all_files(classes = "asystole", limit_per_class = max(neg, pos))

# filenames <- find_all_files(here("inst/extdata/afib_regimes"), data_type = "regimes", classes = "paroxysmal_afib", limit_per_class = max(neg, pos))
# filenames <- find_all_files(here("inst", "extdata", "afib_regimes"), data_type = "regimes",
# classes = "paroxysmal_afib", limit_per_class = max(neg, pos))

pos_files <- list()
i <- 1
Expand Down Expand Up @@ -1283,7 +1284,6 @@ invisible(gc())
```{r posfiles2, warning=FALSE}
values_pos_raw <- values_pos_raw_gain <- values_pos_norm_gain <- values_pos_norm <- list()
for (a in algorithms) {
Expand Down
Loading

0 comments on commit 5636465

Please sign in to comment.