diff --git a/DESCRIPTION b/DESCRIPTION index 4e65de2..4bfbc4c 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,15 +1,15 @@ Package: sparsebn Title: Learning Sparse Bayesian Networks from High-Dimensional Data -Version: 0.0.2 -Date: 2016-11-28 +Version: 0.0.3 +Date: 2017-03-10 Authors@R: person("Bryon", "Aragam", email = "sparsebn@gmail.com", role = c("aut", "cre")) Maintainer: Bryon Aragam Description: Fast methods for learning sparse Bayesian networks from high-dimensional data using sparse regularization. Designed to incorporate mixed experimental and observational data with thousands of variables with either continuous or discrete observations. Depends: R (>= 3.2.3), - sparsebnUtils (>= 0.0.3), - ccdrAlgorithm (>= 0.0.2), - discretecdAlgorithm (>= 0.0.2) + sparsebnUtils (>= 0.0.4), + ccdrAlgorithm (>= 0.0.3), + discretecdAlgorithm (>= 0.0.3) Suggests: knitr, rmarkdown, @@ -20,6 +20,6 @@ Suggests: URL: https://github.com/itsrainingdata/sparsebn BugReports: https://github.com/itsrainingdata/sparsebn/issues License: GPL (>= 2) -RoxygenNote: 5.0.1 +RoxygenNote: 6.0.1 VignetteBuilder: knitr LazyData: true diff --git a/NEWS.md b/NEWS.md index 1986590..f71d919 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,9 @@ +# sparsebn 0.0.3 + +## Bug fixes + +* Minor bug fixes + # sparsebn 0.0.2 ## Features diff --git a/R/sparsebn-main.R b/R/sparsebn-main.R index 9dafbbe..e3ba8d7 100644 --- a/R/sparsebn-main.R +++ b/R/sparsebn-main.R @@ -47,12 +47,10 @@ #' #' @examples #' -#' \dontrun{ #' # Estimate a DAG from the cytometry data #' data(cytometryContinuous) #' dat <- sparsebnData(cytometryContinuous$data, type = "c", ivn = cytometryContinuous$ivn) #' estimate.dag(dat) -#' } #' #' @export estimate.dag <- function(data, @@ -133,12 +131,10 @@ estimate.dag <- function(data, #' #' @examples #' -#' \dontrun{ #' data(cytometryContinuous) #' dat <- sparsebnData(cytometryContinuous$data, type = "c", ivn = cytometryContinuous$ivn) #' estimate.covariance(dat) # estimate covariance #' estimate.precision(dat) # estimate precision -#' } #' #' @name estimate.covariance #' @rdname estimate.covariance diff --git a/R/sparsebn-plotting.R b/R/sparsebn-plotting.R index 3155c1b..d38104f 100644 --- a/R/sparsebn-plotting.R +++ b/R/sparsebn-plotting.R @@ -30,7 +30,7 @@ #' @param ... Additional arguments to \code{\link{plot}}. #' #' @export -plotDAG <- function(x){ +plotDAG <- function(x, ...){ ### Must use igraph for the default method current_plot_pkg <- getPlotPackage() if(current_plot_pkg != "igraph"){ diff --git a/cran-comments.md b/cran-comments.md index 97b6088..7fd8719 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -1,19 +1,16 @@ ## Test environments -* local OS X install, R 3.3.2 -* ubuntu 12.04.5 (travis-ci), R 3.3.2 (oldrel, devel, and release) +* local OS X install, R 3.3.3 +* ubuntu 12.04.5 (travis-ci), R 3.3.3 (oldrel, devel, and release) * win-builder (devel and release) +* r-hub (oldrel, devel, and release) ## R CMD check results There were no ERRORs, WARNINGs, or NOTEs. -## CRAN notes - -The current warnings listed for v0.0.1 at https://cran.rstudio.com/web/checks/check_results_sparsebn.html are a result of recent updates to the dependencies for this submission. The current submission remedies all of these issues. - ## Dependencies CHECK has been run on all dependencies and passed. ## Reverse dependencies -There are no reverse dependencies. \ No newline at end of file +There are no reverse dependencies. diff --git a/man/cytometryContinuous.Rd b/man/cytometryContinuous.Rd index 8efc2ee..424497b 100644 --- a/man/cytometryContinuous.Rd +++ b/man/cytometryContinuous.Rd @@ -27,4 +27,3 @@ dat <- sparsebnData(cytometryContinuous$data, type = "c", ivn = cytometryContinu } \keyword{datasets} - diff --git a/man/cytometryDiscrete.Rd b/man/cytometryDiscrete.Rd index 911b20c..09cc2ca 100644 --- a/man/cytometryDiscrete.Rd +++ b/man/cytometryDiscrete.Rd @@ -27,4 +27,3 @@ dat <- sparsebnData(cytometryDiscrete$data, type = "d", ivn = cytometryDiscrete$ } \keyword{datasets} - diff --git a/man/estimate.covariance.Rd b/man/estimate.covariance.Rd index 6e3baa4..5fd0707 100644 --- a/man/estimate.covariance.Rd +++ b/man/estimate.covariance.Rd @@ -2,6 +2,7 @@ % Please edit documentation in R/sparsebn-main.R \name{estimate.covariance} \alias{estimate.covariance} +\alias{estimate.covariance} \alias{estimate.precision} \title{Covariance estimation} \usage{ @@ -30,12 +31,9 @@ see Sections 2.1 and 2.2 (equation (6)) of Aragam and Zhou (2015) for more detai } \examples{ -\dontrun{ data(cytometryContinuous) dat <- sparsebnData(cytometryContinuous$data, type = "c", ivn = cytometryContinuous$ivn) estimate.covariance(dat) # estimate covariance estimate.precision(dat) # estimate precision -} } - diff --git a/man/estimate.dag.Rd b/man/estimate.dag.Rd index f232abb..9bc5d46 100644 --- a/man/estimate.dag.Rd +++ b/man/estimate.dag.Rd @@ -54,12 +54,9 @@ and \code{\link[discretecdAlgorithm]{cd.run}}. } \examples{ -\dontrun{ # Estimate a DAG from the cytometry data data(cytometryContinuous) dat <- sparsebnData(cytometryContinuous$data, type = "c", ivn = cytometryContinuous$ivn) estimate.dag(dat) -} } - diff --git a/man/pathfinder.Rd b/man/pathfinder.Rd index da6be49..dcede12 100644 --- a/man/pathfinder.Rd +++ b/man/pathfinder.Rd @@ -42,4 +42,3 @@ pathfinder.data <- rmvnorm(n = 1000, sigma = as.matrix(covMat)) } \keyword{datasets} - diff --git a/man/plotDAG.Rd b/man/plotDAG.Rd index aef1cc1..f3d076f 100644 --- a/man/plotDAG.Rd +++ b/man/plotDAG.Rd @@ -4,7 +4,7 @@ \alias{plotDAG} \title{Plot a DAG} \usage{ -plotDAG(x) +plotDAG(x, ...) } \arguments{ \item{x}{An \code{\link{edgeList}}, \code{\link{sparsebnFit}}, or \code{\link{sparsebnPath}} object.} @@ -21,4 +21,3 @@ This method is not intended for customization. For more control over the output, \code{\link{setGraphPackage}} for even more control. These methods grants the user the full feature set of the selected package. } - diff --git a/man/sparsebn.Rd b/man/sparsebn.Rd index 8ef774e..c3060d4 100644 --- a/man/sparsebn.Rd +++ b/man/sparsebn.Rd @@ -23,4 +23,3 @@ The workhorse behind \code{\link{sparsebn}} is the \code{\link[sparsebnUtils]{sp package, which provides various S3 classes and methods for representing and manipulating graphs. For more details on this package and the functionality it provides, see \code{?sparsebnUtils}. } -