-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle version semantics for collections (#115)
* Handling of latest semantics * Fix docs * Run pkg check, bump version
- Loading branch information
Showing
8 changed files
with
152 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Package: nfportalutils | ||
Title: NF Portal Utilities | ||
Version: 0.0.0.9310 | ||
Version: 0.0.0.9320 | ||
Authors@R: c( | ||
person(given = "Robert", family = "Allaway", role = c("aut", "cre"), | ||
email = "[email protected]", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#' Create a view | ||
#' | ||
#' This creates a generic view, including by default just file entities and the default columns | ||
#' (i.e. defaults to a generic fileview). | ||
#' This is often useful to get ids of files for a large number of nested files by creating a temp fileview | ||
#' (the alternative is to use `walk`, but if the tree structure is not regular it can be messy to parse the output). | ||
#' | ||
#' @param scope Character id(s) of project or folder container(s) in scope. | ||
#' @param project Parent project id to create the view in. | ||
#' @param name Name of view. | ||
#' @param include Which entity type(s) to include in scope. Defaults to files. | ||
#' | ||
new_view <- function(scope, | ||
project, | ||
name = "New View", | ||
include = "FILE") { | ||
|
||
included <- match.arg(include, several.ok = TRUE) | ||
view <- synapseclient$EntityViewSchema( | ||
name = name, | ||
columns = list(), | ||
parent = project, | ||
scopes = scope, | ||
includeEntityTypes = list(synapseclient$EntityViewType), | ||
add_default_columns = TRUE) | ||
view <- .syn$store(view) | ||
invisible(view) | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.