Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

downloadableTable selection of rows #14

Merged
merged 18 commits into from
Nov 11, 2019
Merged

downloadableTable selection of rows #14

merged 18 commits into from
Nov 11, 2019

Conversation

ginberg
Copy link

@ginberg ginberg commented Nov 8, 2019

-Add ability to set selected rows in downloadableTable

@codecov-io
Copy link

codecov-io commented Nov 8, 2019

Codecov Report

Merging #14 into cran will decrease coverage by 0.66%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##             cran      #14      +/-   ##
==========================================
- Coverage   63.52%   62.85%   -0.67%     
==========================================
  Files           9        9              
  Lines         658      665       +7     
==========================================
  Hits          418      418              
- Misses        240      247       +7
Impacted Files Coverage Δ
R/downloadableTable.R 25.31% <0%> (-2.47%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2129dd6...b4a3e5e. Read the comment docs.

Copy link
Owner

@cb4ds cb4ds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor change needed - need to move the new parameter to the end of the function call.

@@ -118,7 +120,7 @@ downloadableTableUI <- function(id,
#' server.R using the same id provided in \code{downloadableTableUI}:
#'
#' \strong{\code{callModule(downloadableTable, id, logger, filenameroot,
#' downloaddatafxns, tabledata, rownames, caption)}}
#' downloaddatafxns, tabledata, selection, rownames, caption)}}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to move this to the end of the function for backwards compatibility for users who do not use named inputs.

@cb4ds
Copy link
Owner

cb4ds commented Nov 8, 2019

Is it possible to also add a test? Thanks!

add manual test to check selection of rows in downloadableTable module
@ginberg
Copy link
Author

ginberg commented Nov 10, 2019

ok, I have moved the selection so that it's the last argument. What do you think of a manual test where we start the module in a shiny app and the tester has to check if the selection is set? See the test file that I added. I don't know how we can test it otherwise.

@cb4ds cb4ds merged commit b692abf into cb4ds:cran Nov 11, 2019
cb4ds added a commit that referenced this pull request Dec 10, 2019
* downloadFile xlsx rownames (#11)

* remove httr import

* downloadable table: add support for displaying rownames

* simplify

* remove column name for rownames column

* update version number

* add option to add rownames to downloadable xlsx file

* fix item not found

* refactor

* downloadableTable selection of rows (#14)

* remove httr import

* downloadable table: add support for displaying rownames

* simplify

* remove column name for rownames column

* update version number

* add option to add rownames to downloadable xlsx file

* fix item not found

* refactor

* add selection parameter

* doc

* force update if the same selection is provided

* simplify

* move selection argument for backwards compatibility
add manual test to check selection of rows in downloadableTable module

* remove manual test

* fix single select (#15)

* fix single select

* shinydashboardPlus integration (#13)

* remove httr import

* downloadable table: add support for displaying rownames

* simplify

* remove column name for rownames column

* update version number

* add option to add rownames to downloadable xlsx file

* fix item not found

* refactor

* initial shinydashboardplus integration

* fix layout

* dynamic right sidebar

* update

* updates

* replace table by fluidRow

* styling

* update example

* add documentation

* revert fix

* update documentation, add right sidebar content

* update example

* process review comment

* add reset button argument
update right sidebar functionality

* update documentation/formatting

* rename right_sidebar to rightsidebar

* rename

* rename reset to resetbutton

* documentation

* fix single select

* documentation/formatting updates

* undo 7dca316

* releasing 0.4.7 to CRAN
cb4ds added a commit that referenced this pull request Jul 3, 2020
* Check reactive class value using `shiny::is.reactive()` (#25)
* Check reactive class value using `inherits`
* Use `shiny::is.reactive()` instead of `inherits()`
* Accepted by CRAN (#26)
* CRAN release 0.4.10-1 (#28)
Co-authored-by: Barret Schloerke <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants