Skip to content

Commit

Permalink
fixing CI/CD bugs -- closes #144
Browse files Browse the repository at this point in the history
  • Loading branch information
jr-leary7 committed Oct 19, 2023
1 parent deed8d9 commit c77d745
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,5 @@ jobs:
- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
args: 'c("--ignore-vignettes")'
build_args: 'c("-no-build-vignettes")'
2 changes: 2 additions & 0 deletions .github/workflows/render-README.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
run: Rscript -e 'rmarkdown::render("README.Rmd", output_format = "md_document")'
- name: commit rendered README
run: |
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
git add README.md man/figures/README-*
git commit -m "Recompiled README.Rmd" || echo "No changes to commit"
git push origin || echo "No changes to commit"
10 changes: 5 additions & 5 deletions R/getFittedValues.R
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ getFittedValues <- function(test.dyn.res = NULL,
pt = x[!is.na(x)],
gene = g,
rna = expr.mat[!is.na(x), g])
if (!is.null(id.vec)) {
gene_df <- dplyr::mutate(gene_df, subj_id = id.vec[!is.na(x)])
} else {
gene_df <- dplyr::mutate(gene_df, subj_id = NA_character_)
}
if (!is.null(size.factor.offset)) {
gene_df <- dplyr::mutate(gene_df,
size_factor = unname(size.factor.offset)[!is.na(x)],
Expand Down Expand Up @@ -115,11 +120,6 @@ getFittedValues <- function(test.dyn.res = NULL,
return(gene_df)
}) %>%
purrr::reduce(rbind)
if (!is.null(id.vec)) {
mod_df <- dplyr::mutate(mod_df, subj_id = id.vec[!is.na(x)])
} else {
mod_df <- dplyr::mutate(mod_df, subj_id = NA_character_)
}
return(mod_df)
})
final_df <- purrr::reduce(mod_df_list, rbind) %>%
Expand Down
3 changes: 1 addition & 2 deletions tests/testthat/test_scLANE.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ withr::with_output_sink(tempfile(), {
genes = genes_to_test,
n.potential.basis.fns = 5,
size.factor.offset = cell_offset,
parallel.exec = FALSE,
track.time = TRUE)
parallel.exec = FALSE)
gee_gene_stats <- testDynamic(expr.mat = sim_data,
pt = pt_test,
genes = genes_to_test,
Expand Down

0 comments on commit c77d745

Please sign in to comment.