Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ The package maintainer also reserves the right to adjust the criteria to recogni
If you have further questions regarding the contribution guidelines, please contact the package/repository maintainer.

<!-- urls -->
[docs]: https://insightsengineering.github.io/teal.slice/latest-tag/index.html
[articles]: https://insightsengineering.github.io/teal.slice/latest-tag/articles/index.html
[license]: https://insightsengineering.github.io/teal.slice/latest-tag/LICENSE-text.html
[insights]: https://github.com/insightsengineering/teal.slice/pulse
[docs]: https://pharmaverse.github.io/teal.slice/latest-tag/index.html
[articles]: https://pharmaverse.github.io/teal.slice/latest-tag/articles/index.html
[license]: https://pharmaverse.github.io/teal.slice/latest-tag/LICENSE-text.html
[insights]: https://github.com/pharmaverse/teal.slice/pulse
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,23 @@ body:
id: code-of-conduct
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct.](https://insightsengineering.github.io/teal.slice/latest-tag/CODE_OF_CONDUCT.html)
description: By submitting this issue, you agree to follow our [Code of Conduct.](https://pharmaverse.github.io/teal.slice/latest-tag/CODE_OF_CONDUCT.html)
options:
- label: I agree to follow this project's Code of Conduct.
required: true
- type: checkboxes
id: contributor-guidelines
attributes:
label: Contribution Guidelines
description: By submitting this issue, you agree to follow our [Contribution Guidelines.](https://insightsengineering.github.io/teal.slice/latest-tag/CONTRIBUTING.html)
description: By submitting this issue, you agree to follow our [Contribution Guidelines.](https://pharmaverse.github.io/teal.slice/latest-tag/CONTRIBUTING.html)
options:
- label: I agree to follow this project's Contribution Guidelines.
required: true
- type: checkboxes
id: security-policy
attributes:
label: Security Policy
description: By submitting this issue, you agree to follow our [Security Policy.](https://github.com/insightsengineering/teal.slice/security/policy)
description: By submitting this issue, you agree to follow our [Security Policy.](https://github.com/pharmaverse/teal.slice/security/policy)
options:
- label: I agree to follow this project's Security Policy.
required: true
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@ body:
id: code-of-conduct
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct.](https://insightsengineering.github.io/teal.slice/latest-tag/CODE_OF_CONDUCT.html)
description: By submitting this issue, you agree to follow our [Code of Conduct.](https://pharmaverse.github.io/teal.slice/latest-tag/CODE_OF_CONDUCT.html)
options:
- label: I agree to follow this project's Code of Conduct.
required: true
- type: checkboxes
id: contributor-guidelines
attributes:
label: Contribution Guidelines
description: By submitting this issue, you agree to follow our [Contribution Guidelines.](https://insightsengineering.github.io/teal.slice/latest-tag/CONTRIBUTING.html)
description: By submitting this issue, you agree to follow our [Contribution Guidelines.](https://pharmaverse.github.io/teal.slice/latest-tag/CONTRIBUTING.html)
options:
- label: I agree to follow this project's Contribution Guidelines.
required: true
- type: checkboxes
id: security-policy
attributes:
label: Security Policy
description: By submitting this issue, you agree to follow our [Security Policy.](https://github.com/insightsengineering/teal.slice/security/policy)
description: By submitting this issue, you agree to follow our [Security Policy.](https://github.com/pharmaverse/teal.slice/security/policy)
options:
- label: I agree to follow this project's Security Policy.
required: true
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/question.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@ body:
id: code-of-conduct
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct.](https://insightsengineering.github.io/teal.slice/latest-tag/CODE_OF_CONDUCT.html)
description: By submitting this issue, you agree to follow our [Code of Conduct.](https://pharmaverse.github.io/teal.slice/latest-tag/CODE_OF_CONDUCT.html)
options:
- label: I agree to follow this project's Code of Conduct.
required: true
- type: checkboxes
id: contributor-guidelines
attributes:
label: Contribution Guidelines
description: By submitting this issue, you agree to follow our [Contribution Guidelines.](https://insightsengineering.github.io/teal.slice/latest-tag/CONTRIBUTING.html)
description: By submitting this issue, you agree to follow our [Contribution Guidelines.](https://pharmaverse.github.io/teal.slice/latest-tag/CONTRIBUTING.html)
options:
- label: I agree to follow this project's Contribution Guidelines.
required: true
- type: checkboxes
id: security-policy
attributes:
label: Security Policy
description: By submitting this issue, you agree to follow our [Security Policy.](https://github.com/insightsengineering/teal.slice/security/policy)
description: By submitting this issue, you agree to follow our [Security Policy.](https://github.com/pharmaverse/teal.slice/security/policy)
options:
- label: I agree to follow this project's Security Policy.
required: true
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ repos:
- shinycssloaders
- shinyjs
- shinyWidgets
- insightsengineering/teal.code
- insightsengineering/teal.data
- insightsengineering/teal.logger
- insightsengineering/teal.widgets
- pharmaverse/teal.code
- pharmaverse/teal.data
- pharmaverse/teal.logger
- pharmaverse/teal.widgets
- id: spell-check
name: Check spelling with `spelling`
exclude: >
Expand Down
12 changes: 6 additions & 6 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ Description: Data filtering module for 'teal' applications. Allows for
'MultiAssayExperiment' objects. Also displays filtered and unfiltered
observation counts.
License: Apache License 2.0
URL: https://insightsengineering.github.io/teal.slice/,
https://github.com/insightsengineering/teal.slice/
BugReports: https://github.com/insightsengineering/teal.slice/issues
URL: https://pharmaverse.github.io/teal.slice/,
https://github.com/pharmaverse/teal.slice/
BugReports: https://github.com/pharmaverse/teal.slice/issues
Depends:
R (>= 4.0)
Imports:
Expand Down Expand Up @@ -72,13 +72,13 @@ VignetteBuilder:
Config/Needs/verdepcheck: rstudio/shiny, rstudio/bslib, mllg/checkmate,
tidyverse/dplyr, rstudio/htmltools, jeroen/jsonlite, daroczig/logger,
plotly/plotly, r-lib/R6, daattali/shinycssloaders, daattali/shinyjs,
dreamRs/shinyWidgets, insightsengineering/teal.data,
insightsengineering/teal.logger, insightsengineering/teal.widgets,
dreamRs/shinyWidgets, pharmaverse/teal.data,
pharmaverse/teal.logger, pharmaverse/teal.widgets,
rstudio/DT, yihui/knitr, bioc::MultiAssayExperiment,
bioc::SummarizedExperiment, rstudio/rmarkdown, r-lib/testthat,
r-lib/withr, bioc::matrixStats
Config/Needs/website: insightsengineering/nesttemplate
Comment thread
osenan marked this conversation as resolved.
Config/roxygen2/version: 8.0.0
Config/roxygen2/version: 8.1.0
Encoding: UTF-8
Language: en-US
LazyData: true
Expand Down
5 changes: 2 additions & 3 deletions R/FilterStateDate.R
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ DateFilterState <- R6::R6Class( # nolint
# public methods ----

public = list(

#' @description
#' Initialize a `FilterState` object.
#'
Expand Down Expand Up @@ -251,7 +250,7 @@ DateFilterState <- R6::R6Class( # nolint
},
remove_out_of_bounds_values = function(values) {
choices <- private$get_choices()
if (values[1] < choices[1L] | values[1] > choices[2L]) {
if (values[1] < choices[1L] || values[1] > choices[2L]) {
warning(
sprintf(
"Value: %s is outside of the possible range for column %s of dataset %s, setting minimum possible value.",
Expand All @@ -261,7 +260,7 @@ DateFilterState <- R6::R6Class( # nolint
values[1] <- choices[1L]
}

if (values[2] > choices[2L] | values[2] < choices[1L]) {
if (values[2] > choices[2L] || values[2] < choices[1L]) {
warning(
sprintf(
"Value: %s is outside of the possible range for column %s of dataset %s, setting maximum possible value.",
Expand Down
3 changes: 1 addition & 2 deletions R/FilterStateDatettime.R
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ DatetimeFilterState <- R6::R6Class( # nolint
# public methods ----

public = list(

#' @description
#' Initialize a `FilterState` object. This class
#' has an extra field, `private$timezone`, which is set to `Sys.timezone()` by
Expand Down Expand Up @@ -297,7 +296,7 @@ DatetimeFilterState <- R6::R6Class( # nolint
values[1] <- choices[1L]
}

if (values[2] > choices[2L] | values[2] < choices[1L]) {
if (values[2] > choices[2L] || values[2] < choices[1L]) {
warning(
sprintf(
"Value: '%s' is outside of the range for the column '%s' in dataset '%s', setting maximum possible value.",
Expand Down
1 change: 0 additions & 1 deletion R/FilterStateEmpty.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ EmptyFilterState <- R6::R6Class( # nolint

# public methods ----
public = list(

#' @description
#' Initialize `EmptyFilterState` object.
#'
Expand Down
1 change: 0 additions & 1 deletion R/FilterStateLogical.R
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ LogicalFilterState <- R6::R6Class( # nolint

# public methods ----
public = list(

#' @description
#' Initialize a `FilterState` object.
#'
Expand Down
1 change: 0 additions & 1 deletion R/FilteredDatasetDataframe.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ DataframeFilteredDataset <- R6::R6Class( # nolint

# public fields ----
public = list(

#' @description
#' Initializes this `DataframeFilteredDataset` object.
#'
Expand Down
1 change: 0 additions & 1 deletion R/FilteredDatasetDefault.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ DefaultFilteredDataset <- R6::R6Class( # nolint

# public methods ----
public = list(

#' @description
#' Initializes this `DefaultFilteredDataset` object.
#'
Expand Down
2 changes: 1 addition & 1 deletion R/teal_slices.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#' specify which variables are allowed to be filtered; see `Details`.
#' @param count_type
#' _This is a new feature. Do kindly share your opinions on
#' [`teal.slice`'s GitHub repository](https://github.com/insightsengineering/teal.slice/)._
#' [`teal.slice`'s GitHub repository](https://github.com/pharmaverse/teal.slice/)._
#'
#' (`character(1)`) string specifying how observations are tallied by these filter states.
#' Possible options:
Expand Down
1 change: 0 additions & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ make_c_call <- function(choices) {
}



#' Encodes ids to be used in JavaScript and Shiny
#'
#' @description
Expand Down
36 changes: 18 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@
[![Last Month Downloads](http://cranlogs.r-pkg.org/badges/last-month/teal.slice?color=green)](https://cran.r-project.org/package=teal.slice)
[![Last Week Downloads](http://cranlogs.r-pkg.org/badges/last-week/teal.slice?color=green)](https://cran.r-project.org/package=teal.slice)

[![Check 🛠](https://github.com/insightsengineering/teal.slice/actions/workflows/check.yaml/badge.svg)](https://insightsengineering.github.io/teal.slice/main/unit-test-report/)
[![Docs 📚](https://github.com/insightsengineering/teal.slice/actions/workflows/docs.yaml/badge.svg)](https://insightsengineering.github.io/teal.slice/)
[![Code Coverage 📔](https://raw.githubusercontent.com/insightsengineering/teal.slice/_xml_coverage_reports/data/main/badge.svg)](https://insightsengineering.github.io/teal.slice/main/coverage-report/)

![GitHub forks](https://img.shields.io/github/forks/insightsengineering/teal.slice?style=social)
![GitHub repo stars](https://img.shields.io/github/stars/insightsengineering/teal.slice?style=social)

![GitHub commit activity](https://img.shields.io/github/commit-activity/m/insightsengineering/teal.slice)
![GitHub contributors](https://img.shields.io/github/contributors/insightsengineering/teal.slice)
![GitHub last commit](https://img.shields.io/github/last-commit/insightsengineering/teal.slice)
![GitHub pull requests](https://img.shields.io/github/issues-pr/insightsengineering/teal.slice)
![GitHub repo size](https://img.shields.io/github/repo-size/insightsengineering/teal.slice)
![GitHub language count](https://img.shields.io/github/languages/count/insightsengineering/teal.slice)
[![Check 🛠](https://github.com/pharmaverse/teal.slice/actions/workflows/check.yaml/badge.svg)](https://pharmaverse.github.io/teal.slice/main/unit-test-report/)
[![Docs 📚](https://github.com/pharmaverse/teal.slice/actions/workflows/docs.yaml/badge.svg)](https://pharmaverse.github.io/teal.slice/)
[![Code Coverage 📔](https://raw.githubusercontent.com/pharmaverse/teal.slice/_xml_coverage_reports/data/main/badge.svg)](https://pharmaverse.github.io/teal.slice/main/coverage-report/)

![GitHub forks](https://img.shields.io/github/forks/pharmaverse/teal.slice?style=social)
![GitHub repo stars](https://img.shields.io/github/stars/pharmaverse/teal.slice?style=social)

![GitHub commit activity](https://img.shields.io/github/commit-activity/m/pharmaverse/teal.slice)
![GitHub contributors](https://img.shields.io/github/contributors/pharmaverse/teal.slice)
![GitHub last commit](https://img.shields.io/github/last-commit/pharmaverse/teal.slice)
![GitHub pull requests](https://img.shields.io/github/issues-pr/pharmaverse/teal.slice)
![GitHub repo size](https://img.shields.io/github/repo-size/pharmaverse/teal.slice)
![GitHub language count](https://img.shields.io/github/languages/count/pharmaverse/teal.slice)
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![Current Version](https://img.shields.io/github/r-package/v/insightsengineering/teal.slice/main?color=purple\&label=package%20version)](https://github.com/insightsengineering/teal.slice/tree/main)
[![Open Issues](https://img.shields.io/github/issues-raw/insightsengineering/teal.slice?color=red\&label=open%20issues)](https://github.com/insightsengineering/teal.slice/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc)
[![Current Version](https://img.shields.io/github/r-package/v/pharmaverse/teal.slice/main?color=purple\&label=package%20version)](https://github.com/pharmaverse/teal.slice/tree/main)
[![Open Issues](https://img.shields.io/github/issues-raw/pharmaverse/teal.slice?color=red\&label=open%20issues)](https://github.com/pharmaverse/teal.slice/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc)
<!-- end badges -->

`teal.slice` is an `R` library used in the development of `teal` `shiny` modules. It provides:
Expand All @@ -40,14 +40,14 @@ Alternatively, you might want to use the development version.

```r
# install.packages("pak")
pak::pak("insightsengineering/teal.slice")
pak::pak("pharmaverse/teal.slice")
```

## Usage

To understand how to use this package, please refer to the [Introduction to `teal.slice`](https://insightsengineering.github.io/teal.slice/latest-tag/articles/teal-slice.html) article, which provides multiple examples of code implementation.
To understand how to use this package, please refer to the [Introduction to `teal.slice`](https://pharmaverse.github.io/teal.slice/latest-tag/articles/teal-slice.html) article, which provides multiple examples of code implementation.

![Showcase](https://github.com/insightsengineering/teal.slice/blob/main/assets/img/showcase.gif)
![Showcase](https://github.com/pharmaverse/teal.slice/blob/main/assets/img/showcase.gif)

## Getting help

Expand Down
4 changes: 2 additions & 2 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
url: https://insightsengineering.github.io/teal.slice
url: https://pharmaverse.github.io/teal.slice

template:
package: nesttemplate
Expand All @@ -20,7 +20,7 @@ navbar:
href: unit-test-report-non-cran/
github:
icon: fa-github
href: https://github.com/insightsengineering/teal.slice
href: https://github.com/pharmaverse/teal.slice

reference:
- title: "`teal` filter-panel API"
Expand Down
6 changes: 3 additions & 3 deletions man/teal.slice-package.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/teal_slices.Rd

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

18 changes: 9 additions & 9 deletions staged_dependencies.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
---
current_repo:
repo: insightsengineering/teal.slice
repo: pharmaverse/teal.slice
host: https://github.com
upstream_repos:
insightsengineering/teal.logger:
repo: insightsengineering/teal.logger
pharmaverse/teal.logger:
repo: pharmaverse/teal.logger
host: https://github.com
insightsengineering/teal.widgets:
repo: insightsengineering/teal.widgets
pharmaverse/teal.widgets:
repo: pharmaverse/teal.widgets
host: https://github.com
insightsengineering/teal.data:
repo: insightsengineering/teal.data
pharmaverse/teal.data:
repo: pharmaverse/teal.data
host: https://github.com
downstream_repos:
insightsengineering/teal:
repo: insightsengineering/teal
pharmaverse/teal:
repo: pharmaverse/teal
host: https://github.com
insightsengineering/teal.modules.general:
repo: insightsengineering/teal.modules.general
Expand Down
1 change: 0 additions & 1 deletion tests/testthat/test-filter_panel_api.R
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ testthat::test_that("FilterPanelAPI$clear_filter_states remove the filters of th
})



# WRAPPER FUNCTIONS ----
# get_filter_state ----
testthat::test_that("get_filter_state returns `teal_slices` with features identical to those in input", {
Expand Down
Loading