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

initial commit of bookmark script for bookmark include instead of exc… #69

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

alex-rogers-hub
Copy link

…lude

Brief overview of changes

Added a script to create bookmark include function
...

Why are these changes being made?

for explicit include instead of exclude
...

Detailed description of changes

script added to dfeshiny package
...

Additional information for reviewers

...

Issue ticket number/s and link

to close issue #96
...

R/bookmark.R Fixed Show fixed Hide fixed
R/bookmark.R Fixed Show fixed Hide fixed
R/bookmark.R Fixed Show fixed Hide fixed
R/bookmark.R Fixed Show fixed Hide fixed
R/bookmark.R Fixed Show fixed Hide fixed
R/bookmark.R Fixed Show fixed Hide fixed
R/bookmark.R Fixed Show fixed Hide fixed
R/bookmark.R Fixed Show fixed Hide fixed
R/bookmark.R Fixed Show fixed Hide fixed

print('bookmarked')
# Trigger bookmarking whenever relevant inputs change
session$doBookmark()

Check warning

Code scanning / lintr

no visible binding for global variable 'session' Warning

no visible binding for global variable 'session'
Copy link
Contributor

@rmbielby rmbielby left a comment

Choose a reason for hiding this comment

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

Had an initial scan through. A few initial things we could do with having on this:

  • Run styler::style_dir() to clean up the code layout a little
  • Run lintr::lint_dir() and resolve the issues that it flags
  • Set up a handful of tests for the new function to get run by devtools::test() alongside the rest of the testing suite

# print(paste("ExcludedIDs:", paste(toExclude, collapse = ", ")))

# exclude all remaining inputs from bookmark
setBookmarkExclude(toExclude)

Check warning

Code scanning / lintr

no visible global function definition for 'setBookmarkExclude' Warning

no visible global function definition for 'setBookmarkExclude'
#' })
set_bookmark_include <- function(bookmarking_whitelist) {
# exclude the white list from complete list
to_exclude <- setdiff(names(input), bookmarking_whitelist)

Check warning

Code scanning / lintr

local variable 'to_exclude' assigned but may not be used Warning

local variable 'to_exclude' assigned but may not be used
#' })
set_bookmark_include <- function(bookmarking_whitelist) {
# exclude the white list from complete list
to_exclude <- setdiff(names(input), bookmarking_whitelist)

Check warning

Code scanning / lintr

no visible binding for global variable 'input' Warning

no visible binding for global variable 'input'
to_exclude <- setdiff(names(input), bookmarking_whitelist)

# exclude all remaining inputs from bookmark
setBookmarkExclude(toExclude)

Check warning

Code scanning / lintr

no visible binding for global variable 'toExclude' Warning

no visible binding for global variable 'toExclude'
@rmbielby
Copy link
Contributor

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.

2 participants