Skip to content

Commit

Permalink
update docs, ignore deprecated in covr
Browse files Browse the repository at this point in the history
  • Loading branch information
helske committed Sep 25, 2024
1 parent 488b313 commit 4c265ac
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ jobs:

- name: Test coverage
run: |
skip_fns = c("mssplot", "ssplot", "ssp", "plot.ssp", "ssplotM", "ssplotter")
cov <- covr::package_coverage(
quiet = FALSE,
clean = FALSE,
function_exclusions = skip_fun
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
)
covr::to_cobertura(cov)
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ importFrom(Rcpp,evalCpp)
importFrom(Rcpp,loadModule)
importFrom(TraMineR,alphabet)
importFrom(TraMineR,seqdef)
importFrom(TraMineR,seqlegend)
importFrom(TraMineR,seqstatf)
importFrom(ggplot2,aes)
importFrom(ggplot2,facet_wrap)
Expand Down
8 changes: 4 additions & 4 deletions R/stacked_sequence_plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ stacked_sequence_plot <- function(

if (n_channels == 1) {
if (type == "distribution") {
cpal_y <- setNames(attr(y, "cpal"), attr(y, "labels"))
cpal_y <- stats::setNames(attr(y, "cpal"), attr(y, "labels"))
p <- ggseqplot::ggseqdplot(y, group = group, sortv = sort_by, ...) +
ggplot2::theme(legend.position = legend_position) +
ggplot2::ylab("Proportion") +
Expand All @@ -161,7 +161,7 @@ stacked_sequence_plot <- function(
)
}
if (type == "index") {
cpal_y <- setNames(attr(y, "cpal"), attr(y, "labels"))
cpal_y <- stats::setNames(attr(y, "cpal"), attr(y, "labels"))
p <- ggseqplot::ggseqiplot(y, group = group, sortv = sort_by, ...) +
ggplot2::theme(legend.position = legend_position) +
ggplot2::ylab("Sequence") +
Expand Down Expand Up @@ -189,7 +189,7 @@ stacked_sequence_plot <- function(
p <- vector("list", n_channels)
if (type == "distribution") {
for (i in seq_len(n_channels)) {
cpal_y <- setNames(attr(y[[i]], "cpal"), attr(y[[i]], "labels"))
cpal_y <- stats::setNames(attr(y[[i]], "cpal"), attr(y[[i]], "labels"))
p[[i]] <- ggseqplot::ggseqdplot(y[[i]], group = group, ...) +
ggplot2::theme(legend.position = legend_position[i]) +
ggplot2::ggtitle(channel_names[i]) +
Expand All @@ -203,7 +203,7 @@ stacked_sequence_plot <- function(
}
if (type == "index") {
for (i in seq_len(n_channels)) {
cpal_y <- setNames(attr(y[[i]], "cpal"), attr(y[[i]], "labels"))
cpal_y <- stats::setNames(attr(y[[i]], "cpal"), attr(y[[i]], "labels"))
p[[i]] <- ggseqplot::ggseqiplot(y[[i]], group = group, ...) +
ggplot2::theme(legend.position = legend_position[i]) +
ggplot2::ggtitle(channel_names[i]) +
Expand Down
3 changes: 2 additions & 1 deletion man/sort_sequences.Rd

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

3 changes: 2 additions & 1 deletion man/stacked_sequence_plot.Rd

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

0 comments on commit 4c265ac

Please sign in to comment.