Skip to content

Commit f364763

Browse files
committed
use correct object type
some autocomplete were using the wrong objects
1 parent 0aaa6ac commit f364763

12 files changed

+73
-14
lines changed

NAMESPACE

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Generated by roxygen2: do not edit by hand
22

33
S3method(.DollarNames,chart)
4+
S3method(.DollarNames,iterator)
5+
S3method(.DollarNames,metric)
46
S3method(.DollarNames,model)
57
S3method(.DollarNames,optimiser)
68
S3method(.DollarNames,preprocess)
@@ -146,6 +148,7 @@ importFrom(graphics,plot)
146148
importFrom(knitr,purl)
147149
importFrom(ontologyIndex,get_ontology)
148150
importFrom(stats,runif)
151+
importFrom(utils,.DollarNames)
149152
importFrom(utils,as.person)
150153
importFrom(utils,bibentry)
151154
importFrom(utils,capture.output)

R/chart_class.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#' @param ... named slots and their values that get passed to struct_class
2727
chart = function(...) {
2828
# new object
29-
out = .chart(...)
29+
out = new_struct('chart',...)
3030
return(out)
3131
}
3232

R/generics.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,3 +677,6 @@ setGeneric("libraries",function(obj)standardGeneric("libraries"))
677677
#' @rdname ontology
678678
#' @export
679679
setGeneric("ontology",function(obj,cache=NULL)standardGeneric("ontology"))
680+
681+
#' @importFrom utils .DollarNames
682+
setGeneric('.DollarNames', package='utils')

R/iterator_class.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#' @rdname iterator
1919
iterator = function(...) {
2020
# new object
21-
out = .iterator(...)
21+
out = new_struct('iterator',...)
2222
return(out)
2323
}
2424

@@ -278,7 +278,7 @@ setMethod(f = 'as.code',
278278

279279
# autocompletion, return sample_meta column names
280280
#' @export
281-
#' @method .DollarNames chart
281+
#' @method .DollarNames iterator
282282
#' @rdname autocompletion
283283
.DollarNames.iterator<- function(x, pattern = "") {
284284
.DollarNames.struct_class(x,pattern)

R/metric_class.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#' @rdname metric
1717
metric = function(...) {
1818
# new object
19-
out = .metric(...)
19+
out = new_struct('metric',...)
2020
return(out)
2121
}
2222

@@ -114,7 +114,7 @@ setMethod(f = "show",
114114
# autocompletion, return sample_meta column names
115115
#' @export
116116
#' @rdname autocompletion
117-
#' @method .DollarNames chart
117+
#' @method .DollarNames metric
118118
.DollarNames.metric<- function(x, pattern = "") {
119119
.DollarNames.struct_class(x,pattern)
120120
}

R/model_class.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
#' @rdname model
3838
model = function(predicted=character(0),seq_in='data',seq_fcn=function(x){return(x)},...) {
3939
# new object
40-
out = .model(predicted = predicted,
40+
out = new_struct('model',
41+
predicted = predicted,
4142
seq_in = seq_in,
4243
seq_fcn = seq_fcn,
4344
...)

R/model_list_class.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#' @rdname model_seq
2121
model_seq = function(...) {
2222
# new object
23-
out = .model_seq(...)
23+
out = new_struct('model_seq',...)
2424
return(out)
2525
}
2626

R/optimiser_class.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#' @return an optimiser object
1414
optimiser = function(...) {
1515
# new object
16-
out = .optimiser(...)
16+
out = new_struct('optimiser',...)
1717
return(out)
1818
}
1919

R/preprocess_class.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#' @rdname preprocessing
1414
preprocess = function(...) {
1515
# new object
16-
out = .preprocess(...)
16+
out = new_struct('preprocess',...)
1717
return(out)
1818
}
1919

R/resampler_class.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#' @return a resampler object
1212
resampler = function(...) {
1313
# new object
14-
out = .resampler(...)
14+
out = new_struct('resampler',...)
1515
return(out)
1616
}
1717

0 commit comments

Comments
 (0)