Skip to content

Commit

Permalink
Fixes for R checks
Browse files Browse the repository at this point in the history
  • Loading branch information
franck-simon committed Aug 28, 2024
1 parent fa861b2 commit e8208f0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions R/miic.R
Original file line number Diff line number Diff line change
Expand Up @@ -408,12 +408,12 @@
#' and possibly separate them.}
#' \item{ \emph{raw_contributions:} describes the share of total mutual
#' information between \emph{x} and \emph{y} explained by each contributor,
#' measured by I'(x;y;ai|{aj}) / I'(x;y),
#' where {aj} is the separating set before adding ai.}
#' measured by I'(x;y;ai|\{aj\}) / I'(x;y),
#' where \{aj\} is the separating set before adding ai.}
#' \item{ \emph{contributions:} describes the share of remaining mutual
#' information between \emph{x} and \emph{y} explained by each successive
#' contributors, measured by I'(x;y;ai|{aj}) / I'(x;y|{aj}),
#' where {aj} is the separating set before adding ai. }
#' contributors, measured by I'(x;y;ai|\{aj\}) / I'(x;y|\{aj\}),
#' where \{aj\} is the separating set before adding ai. }
#' \item{ \emph{info:} the mutual information \emph{I(x;y)} times the number
#' of complete samples \emph{n_xy} for the pair (\emph{x}, \emph{y}).}
#' \item{ \emph{n_xy:} gives the number of complete samples on which the
Expand Down Expand Up @@ -651,7 +651,7 @@
#'
#' # write graph to graphml format. Note that to correctly visualize
#' # the network we created the miic style for Cytoscape (http://www.cytoscape.org/).
#' writeCytoscapeNetwork(g = miic_obj, file = file.path(tempdir(), "temp"))
#' writeCytoscapeNetwork(miic_obj, file = file.path(tempdir(), "temp"))
#'
#' # EXAMPLE OHNOLOGS
#' data(ohno)
Expand Down
2 changes: 1 addition & 1 deletion R/parseResults.R
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ summarizeResults = function (observations, results,
# If no edge in the summary, returns directly an empty data frame
#
if (nrow (summary) == 0)
return (data._frame (x = character(0), y = character(0),
return (data.frame (x = character(0), y = character(0),
type = character(0), ai = character(0),
raw_contributions = character(0), contributions = character(0),
info = numeric(0), n_xy = numeric(0), info_cond = numeric(0),
Expand Down
10 changes: 5 additions & 5 deletions man/miic.Rd

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

0 comments on commit e8208f0

Please sign in to comment.