Skip to content

Commit

Permalink
Merge pull request #10 from dm13450/devrfix
Browse files Browse the repository at this point in the history
Devrfix
  • Loading branch information
dm13450 authored Dec 10, 2019
2 parents 28faf09 + 9c3c30b commit 60b8122
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 16 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ cache: packages
r_packages:
- covr

r_build_args: '--compact-vignettes="gs+qpdf"'

addons:
apt:
packages:
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: dirichletprocess
Type: Package
Title: Build Dirichlet Process Objects for Bayesian Modelling
Version: 0.3.0.9000
Version: 0.3.1
Authors@R: c(
person("Gordon", "J. Ross", email="[email protected]", role=c("aut")),
person("Dean", "Markwick", email="[email protected]", role=c("aut", "cre")),
Expand Down
10 changes: 9 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# dirichletprocess 0.3.3
# dirichletprocess 0.3.1

* Fixed matrix class checking for R 4.0.0
* Corrected typos in vignette
* Added a parameter for the number of initial clusters in DirichletProcessMvnormal.
* Various refactoring.


# dirichletprocess 0.3.0

* Added Hidden Markov models.
* Fixed bug in PosteriorClusters and PosteriorFunction.
Expand Down
2 changes: 1 addition & 1 deletion R/mvnormal_semi_conjugate.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Mvnormal2Create <- function(priorParameters) {


if (class(priorParameters$mu0) != "matrix"){
if (!is.matrix(priorParameters$mu0)){
priorParameters$mu0 <- matrix(priorParameters$mu0, nrow=1)
}

Expand Down
2 changes: 1 addition & 1 deletion R/utilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ weighted_function_generator <- function(func, weights, params) {

weightedFunc <- function(y) {

if (class(y) %in% c("matrix", "data.frame")){
if (is.matrix(y) || is.data.frame(y)){
out <- numeric(nrow(y))
y <- as.matrix(y)
}
Expand Down
17 changes: 5 additions & 12 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
-dirichletprocess 0.3.0
-dirichletprocess 0.3.1
-----------------------

## Resubmission

This is a resubmission. In this version I have:

* Removed the uneeded LICENSE file

This is an update to the previous submission.

## Changes
In this version I have:

* Added Hidden Markov models.
* Fixed bug in PosteriorClusters and PosteriorFunction.
* Added in new Beta mixture model for avoiding boundary.
* Fixed a bug in ChangeObservations when using more than one dimension.
* Added in Burn, Print and Diagnostic Plots.
* Fixed matrix class checking for R 4.0.0
* Corrected typos in vignette
* Added a parameter for the number of initial clusters in DirichletProcessMvnormal.
* Various refactoring.

## Test environments
* local OS X install, R 3.5.0
Expand Down

0 comments on commit 60b8122

Please sign in to comment.