Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
i2dash
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
loosolab
software
i2dash
Commits
22fad866
Commit
22fad866
authored
5 years ago
by
arsenij.ustjanzew
Browse files
Options
Downloads
Patches
Plain Diff
changed naming of getter and setter methods
parent
2406cfe0
No related branches found
No related tags found
1 merge request
!10
Getter and setter methods for title, author, datadir and theme
Pipeline
#121878
passed
5 years ago
Stage: build
Stage: check
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
NAMESPACE
+8
-8
8 additions, 8 deletions
NAMESPACE
R/AllGenerics.R
+8
-8
8 additions, 8 deletions
R/AllGenerics.R
R/get_set.R
+8
-8
8 additions, 8 deletions
R/get_set.R
man/i2dashboard-class.Rd
+8
-8
8 additions, 8 deletions
man/i2dashboard-class.Rd
with
32 additions
and
32 deletions
NAMESPACE
+
8
−
8
View file @
22fad866
# Generated by roxygen2: do not edit by hand
export("%>%")
export("author<-")
export("datadir<-")
export("interactivity<-")
export("theme<-")
export("title<-")
export(add_colormap)
export(add_component)
export(add_page)
export(add_to_sidebar)
export(assemble)
export(author)
export(datadir)
export(embed_var)
export(get_author)
export(get_datadir)
export(get_theme)
export(get_title)
export(i2dashboard)
export(interactivity)
export(remove_page)
export(set_author)
export(set_datadir)
export(set_theme)
export(set_title)
export(theme)
export(title)
exportClasses(i2dashboard)
exportMethods(add_colormap)
exportMethods(add_component)
...
...
This diff is collapsed.
Click to expand it.
R/AllGenerics.R
+
8
−
8
View file @
22fad866
...
...
@@ -24,25 +24,25 @@ setGeneric("interactivity", function(dashboard) standardGeneric("interactivity")
setGeneric
(
"interactivity<-"
,
function
(
dashboard
,
value
)
standardGeneric
(
"interactivity<-"
))
#' @export
setGeneric
(
"
get_
title"
,
function
(
dashboard
)
standardGeneric
(
"
get_
title"
))
setGeneric
(
"title"
,
function
(
dashboard
)
standardGeneric
(
"title"
))
#' @export
setGeneric
(
"
set_
title"
,
function
(
dashboard
,
value
)
standardGeneric
(
"
set_
title"
))
setGeneric
(
"title
<-
"
,
function
(
dashboard
,
value
)
standardGeneric
(
"title
<-
"
))
#' @export
setGeneric
(
"
get_
author"
,
function
(
dashboard
)
standardGeneric
(
"
get_
author"
))
setGeneric
(
"author"
,
function
(
dashboard
)
standardGeneric
(
"author"
))
#' @export
setGeneric
(
"
set_
author"
,
function
(
dashboard
,
value
)
standardGeneric
(
"
set_
author"
))
setGeneric
(
"author
<-
"
,
function
(
dashboard
,
value
)
standardGeneric
(
"author
<-
"
))
#' @export
setGeneric
(
"
get_
theme"
,
function
(
dashboard
)
standardGeneric
(
"
get_
theme"
))
setGeneric
(
"theme"
,
function
(
dashboard
)
standardGeneric
(
"theme"
))
#' @export
setGeneric
(
"
set_
theme"
,
function
(
dashboard
,
value
)
standardGeneric
(
"
set_
theme"
))
setGeneric
(
"theme
<-
"
,
function
(
dashboard
,
value
)
standardGeneric
(
"theme
<-
"
))
#' @export
setGeneric
(
"
get_
datadir"
,
function
(
dashboard
)
standardGeneric
(
"
get_
datadir"
))
setGeneric
(
"datadir"
,
function
(
dashboard
)
standardGeneric
(
"datadir"
))
#' @export
setGeneric
(
"set_datadir"
,
function
(
dashboard
,
value
)
standardGeneric
(
"set_datadir"
))
\ No newline at end of file
setGeneric
(
"datadir<-"
,
function
(
dashboard
,
value
)
standardGeneric
(
"datadir<-"
))
\ No newline at end of file
This diff is collapsed.
Click to expand it.
R/get_set.R
+
8
−
8
View file @
22fad866
...
...
@@ -21,11 +21,11 @@ setMethod("interactivity<-", "i2dashboard", function(dashboard, value) {
#'
#' @name i2dashboard-class
#' @rdname i2dashboard-class
setMethod
(
"
get_
title"
,
"i2dashboard"
,
function
(
dashboard
)
dashboard
@
title
)
setMethod
(
"title"
,
"i2dashboard"
,
function
(
dashboard
)
dashboard
@
title
)
#' @name i2dashboard-class
#' @rdname i2dashboard-class
setMethod
(
"
set_
title"
,
"i2dashboard"
,
function
(
dashboard
,
value
)
{
setMethod
(
"title
<-
"
,
"i2dashboard"
,
function
(
dashboard
,
value
)
{
dashboard
@
title
<-
value
dashboard
})
...
...
@@ -37,11 +37,11 @@ setMethod("set_title", "i2dashboard", function(dashboard, value) {
#'
#' @name i2dashboard-class
#' @rdname i2dashboard-class
setMethod
(
"
get_
author"
,
"i2dashboard"
,
function
(
dashboard
)
dashboard
@
author
)
setMethod
(
"author"
,
"i2dashboard"
,
function
(
dashboard
)
dashboard
@
author
)
#' @name i2dashboard-class
#' @rdname i2dashboard-class
setMethod
(
"
set_
author"
,
"i2dashboard"
,
function
(
dashboard
,
value
)
{
setMethod
(
"author
<-
"
,
"i2dashboard"
,
function
(
dashboard
,
value
)
{
dashboard
@
author
<-
value
dashboard
})
...
...
@@ -53,11 +53,11 @@ setMethod("set_author", "i2dashboard", function(dashboard, value) {
#'
#' @name i2dashboard-class
#' @rdname i2dashboard-class
setMethod
(
"
get_
theme"
,
"i2dashboard"
,
function
(
dashboard
)
dashboard
@
theme
)
setMethod
(
"theme"
,
"i2dashboard"
,
function
(
dashboard
)
dashboard
@
theme
)
#' @name i2dashboard-class
#' @rdname i2dashboard-class
setMethod
(
"
set_
theme"
,
"i2dashboard"
,
function
(
dashboard
,
value
)
{
setMethod
(
"theme
<-
"
,
"i2dashboard"
,
function
(
dashboard
,
value
)
{
dashboard
@
theme
<-
value
dashboard
})
...
...
@@ -69,11 +69,11 @@ setMethod("set_theme", "i2dashboard", function(dashboard, value) {
#'
#' @name i2dashboard-class
#' @rdname i2dashboard-class
setMethod
(
"
get_
datadir"
,
"i2dashboard"
,
function
(
dashboard
)
dashboard
@
datadir
)
setMethod
(
"datadir"
,
"i2dashboard"
,
function
(
dashboard
)
dashboard
@
datadir
)
#' @name i2dashboard-class
#' @rdname i2dashboard-class
setMethod
(
"
set_
datadir"
,
"i2dashboard"
,
function
(
dashboard
,
value
)
{
setMethod
(
"datadir
<-
"
,
"i2dashboard"
,
function
(
dashboard
,
value
)
{
dashboard
@
datadir
<-
value
dashboard
})
This diff is collapsed.
Click to expand it.
man/i2dashboard-class.Rd
+
8
−
8
View file @
22fad866
...
...
@@ -8,21 +8,21 @@
\S4method{interactivity}{i2dashboard}(dashboard) <- value
\S4method{
get_
title}{i2dashboard}(dashboard)
\S4method{title}{i2dashboard}(dashboard)
\S4method{
set_
title}{i2dashboard}(dashboard
,
value
)
\S4method{title}{i2dashboard}(dashboard
) <-
value
\S4method{
get_
author}{i2dashboard}(dashboard)
\S4method{author}{i2dashboard}(dashboard)
\S4method{
set_
author}{i2dashboard}(dashboard
,
value
)
\S4method{author}{i2dashboard}(dashboard
) <-
value
\S4method{
get_
theme}{i2dashboard}(dashboard)
\S4method{theme}{i2dashboard}(dashboard)
\S4method{
set_
theme}{i2dashboard}(dashboard
,
value
)
\S4method{theme}{i2dashboard}(dashboard
) <-
value
\S4method{
get_
datadir}{i2dashboard}(dashboard)
\S4method{datadir}{i2dashboard}(dashboard)
\S4method{
set_
datadir}{i2dashboard}(dashboard
,
value
)
\S4method{datadir}{i2dashboard}(dashboard
) <-
value
}
\arguments{
\item{dashboard}{A \linkS4class{i2dash::i2dashboard}.}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment