Skip to content

Commit

Permalink
Roxygen
Browse files Browse the repository at this point in the history
  • Loading branch information
jayqi committed Dec 4, 2018
1 parent 46f0043 commit b55f92d
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 29 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export(DependencyReporter)
export(FunctionReporter)
export(InheritanceReporter)
export(SummaryReporter)
export(igraphAvailableLayouts)
import(data.table)
importFrom(DT,datatable)
importFrom(DT,formatRound)
Expand Down
13 changes: 11 additions & 2 deletions R/AbstractGraphReporter.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
#' \item{\code{network_measures}}{Returns a table of network measures, one row per node}
#' \item{\code{graph_viz}}{Returns the graph visualization object}
#' \item{\code{layout_type}}{If no value given, the current layout type for the graph visualization is returned.
#' If a valid layout type is given, this function will update the layout_type field.}
#' If a valid layout type is given, this function will update the layout_type field.
#' See \code{\link{igraphAvailableLayouts}} for valid options.}
#' }
#' @importFrom data.table data.table copy uniqueN
#' @importFrom R6 R6Class
Expand Down Expand Up @@ -452,7 +453,15 @@ AbstractGraphReporter <- R6::R6Class(
)
)


#' @title Available Graph Layout Functions from igraph
#' @name igraphAvailableLayouts
#' @description Returns available \link[igraph:layout_]{\code{igraph} layout function}
#' names. These names can be passed to
#' \code{\link[visNetwork:visIgraphLayout]{visNetwork::visIgraphLayout}} or set
#' as the \code{layout_type} for any reporters that inherit from
#' \code{\link{AbstractGraphReporter}}.
#' @return a character vector of igraph layout function names
#' @export
igraphAvailableLayouts <- function() {
return(grep("^layout_\\S", getNamespaceExports("igraph"), value = TRUE))
}
6 changes: 2 additions & 4 deletions man/AbstractGraphReporter.Rd

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

4 changes: 2 additions & 2 deletions man/FunctionReporter.Rd

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

42 changes: 21 additions & 21 deletions man/InheritanceReporter.Rd

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

18 changes: 18 additions & 0 deletions man/igraphAvailableLayouts.Rd

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

0 comments on commit b55f92d

Please sign in to comment.