Skip to content

Commit

Permalink
test [["?"]] for all objects
Browse files Browse the repository at this point in the history
  • Loading branch information
dankelley committed Dec 25, 2021
1 parent d8f60ff commit 6b99062
Show file tree
Hide file tree
Showing 29 changed files with 155 additions and 165 deletions.
10 changes: 7 additions & 3 deletions R/adp.R
Original file line number Diff line number Diff line change
Expand Up @@ -677,9 +677,13 @@ setMethod(f="[[",
##>message("ISAD2CP=", ISAD2CP)
metadataDerived <- c("coordinate")
numberOfBeams <- if (ISAD2CP) 4 else x@metadata$numberOfBeams
dataDerived <- c(paste0("u", seq_len(numberOfBeams)),
paste0("a", seq_len(numberOfBeams)),
paste0("q", seq_len(numberOfBeams)))
if (is.null(numberOfBeams)) {
dataDerived <- c("a", "u", "q")
} else {
dataDerived <- c(paste0("u", seq_len(numberOfBeams)),
paste0("a", seq_len(numberOfBeams)),
paste0("q", seq_len(numberOfBeams)))
}
if (i == "?")
return(list(metadata=sort(names(x@metadata)),
metadataDerived=sort(metadataDerived),
Expand Down
11 changes: 5 additions & 6 deletions man-roxygen/sub_subTemplate.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# vim:textwidth=80:expandtab:shiftwidth=4:softtabstop=4

#' @param i Character string indicating the name of an item to extract.
#' @param i character value indicating the name of an item to extract.
#'
#' @param j Optional additional information on the `i` item.
#' @param j optional additional information on the `i` item.
#'
#' @param ... Optional additional information (ignored).
#' @param ... ignored.
#'
#' @description
#'
Expand All @@ -23,9 +23,8 @@
#'
#' Some understanding of the subclass is required to know what can be retrieved
#' with `[[`. When dealing with an unfamiliar subclass, it can be useful to
#' first use `x[["?"]]` to get a listing of the retrievable items. The first
#' entry of \dQuote{Details of the Specialized Method} provides more information
#' on this.
#' first use `x[["?"]]` to get a listing of the retrievable items. See
#' \dQuote{Details of the Specialized Method} for more information.
#'
## NOTE: Roxygen2 puts this after the Specialized method, which is where I want
## it. I don't understand why, though and therefore will be on the lookout for
Expand Down
11 changes: 5 additions & 6 deletions man/sub-sub-adp-method.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions man/sub-sub-adv-method.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions man/sub-sub-amsr-method.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions man/sub-sub-argo-method.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions man/sub-sub-bremen-method.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions man/sub-sub-cm-method.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions man/sub-sub-coastline-method.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions man/sub-sub-ctd-method.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions man/sub-sub-echosounder-method.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions man/sub-sub-g1sst-method.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions man/sub-sub-gps-method.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions man/sub-sub-ladp-method.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions man/sub-sub-landsat-method.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6b99062

Please sign in to comment.