Skip to content

Commit 504e989

Browse files
committed
v2.3.0
2 parents 9f54a06 + 677d057 commit 504e989

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+462
-142
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ LICENSE
77
^cran-comments\.md$
88
^revdep$
99
man-roxygen/*
10+
images/*

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
*-Ex.R
44
.Rdata
55
.Rproj.user
6-
shinystan.Rproj
76

87
*.DS_Store
98
inst/doc

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ r: devel
33
cache: packages
44

55
r_github_packages:
6-
- HenrikBengtsson/matrixStats@develop
76
- jimhester/covr
87

98
after_success:

DESCRIPTION

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: shinystan
22
Title: Interactive Visual and Numerical Diagnostics and Posterior Analysis for
33
Bayesian Models
4-
Version: 2.2.1-2
5-
Date: 2016-08-31
4+
Version: 2.3.0
5+
Date: 2017-01-31
66
Authors@R: c(person("Jonah", "Gabry", role = c("aut", "cre"),
77
email = "[email protected]"),
88
person(family = "Stan Development Team", role = "ctb"),
@@ -24,35 +24,36 @@ Description: A graphical user interface for interactive Markov chain Monte
2424
fit using the rstan and rstanarm packages).
2525
URL: https://github.com/stan-dev/shinystan/, http://mc-stan.org/
2626
BugReports: https://github.com/stan-dev/shinystan/issues/
27+
License: GPL (>=3)
2728
Depends:
2829
R (>= 3.1.0),
2930
shiny (>= 0.12.1)
30-
License: GPL (>=3)
31-
LazyData: true
32-
Suggests:
33-
coda,
34-
knitr (>= 1.9),
35-
rmarkdown (>= 0.8.1),
36-
rstanarm (>= 2.9.0-3),
37-
testthat
3831
Imports:
32+
bayesplot (>= 1.1.0),
3933
colourpicker,
4034
DT (>= 0.2),
41-
dygraphs (>= 0.4.5),
42-
ggplot2 (>= 2.1.0),
35+
dygraphs (>= 1.1.1.2),
36+
ggplot2 (>= 2.1.1),
4337
gridExtra,
4438
gtools,
4539
markdown (>= 0.7.4),
4640
methods,
4741
reshape2,
4842
rsconnect (>= 0.4.2),
49-
rstan (>= 2.9.0-3),
43+
rstan (>= 2.14.1),
5044
stats,
5145
shinyjs (>= 0.6.0),
5246
shinythemes (>= 1.0.1),
5347
threejs (>= 0.2.1),
5448
utils,
5549
xtable,
5650
xts (>= 0.9-7)
51+
Suggests:
52+
coda,
53+
knitr (>= 1.9),
54+
rmarkdown (>= 0.8.1),
55+
rstanarm (>= 2.14.1),
56+
testthat
57+
LazyData: true
5758
VignetteBuilder: knitr
5859
RoxygenNote: 5.0.1

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export(rename_model)
1414
export(retrieve)
1515
export(sso_info)
1616
export(update_sso)
17+
import(bayesplot)
1718
import(dygraphs)
1819
import(ggplot2)
1920
import(methods)

NEWS.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
1-
### Version 2.2.1-2
2-
* Fix various issues resulting in errors for models fit using static HMC (thanks to @colemonnahan)
1+
### Version 2.3.0
2+
3+
#### Fixes
4+
* Fix various issues resulting in errors for models fit using static HMC (thanks
5+
to Cole Monnahan).
6+
* Deprecate `burnin` argument to `as.shinystan`. Use `warmup` instead. Only
7+
relevant for models _not_ fit using Stan.
8+
9+
#### New features
10+
* Add NUTS energy diagnostic plots to Diagnose page
11+
* Allowing passing `sampler_params` to `as.shinystan`. This makes it possible to
12+
display sampler diagnositcs for HMC/NUTS even if not using Stan's implementation
13+
of those algorithms (thanks to Cole Monnahan)
14+
>>>>>>> develop
315
416
### Version 2.2.1
17+
518
* Better compatibility with latest releases of 'shinyjs' and 'DT' packages
619
* `shinystan::launch_shinystan_demo()` now works without first having to load
720
the package with a call to `library`

R/deploy_shinystan.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ deploy_shinystan <- function(sso, appName, account = NULL, ..., deploy = TRUE) {
8888
ui_pkgs <- c(
8989
server_pkgs,
9090
"ggplot2",
91+
"bayesplot",
9192
"gtools",
9293
"reshape2",
9394
"dygraphs",

R/generate_quantity.R

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,6 @@ generate_quantity <- function(sso, param1, param2, fun, new_name) {
5454
if (two_params)
5555
y_samp <- posterior[, , param2]
5656
}
57-
if (ndim == 2) {
58-
# i.e. only 1 chain
59-
x_samp <- posterior[, param1]
60-
if (two_params)
61-
y_samp <- posterior[, param2]
62-
}
6357

6458
arglist <- if (two_params)
6559
list(x_samp, y_samp) else list(x_samp)
@@ -79,7 +73,7 @@ generate_quantity <- function(sso, param1, param2, fun, new_name) {
7973
sso_new <- as.shinystan(
8074
posterior,
8175
model_name = slot(sso, "model_name"),
82-
burnin = slot(sso, "n_warmup"),
76+
warmup = slot(sso, "n_warmup"),
8377
param_dims = param_dims_new
8478
)
8579
slot(sso_new, "summary") <-

R/misc.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,10 @@ grepl_ic <- function(pattern, x, ignore.case = TRUE) {
5858
# release reminders (for devtools)
5959
release_questions <- function() {
6060
c(
61-
"Have you updated version numbers in the citation?",
62-
"Have you updated NEWS.md? and inst/NEWS?"
61+
"Have you updated version numbers in inst/CITATION?",
62+
"Have you updated version numbers in the citation on the About page?",
63+
"Have you updated version numbers in the citation on the Stan website?",
64+
"Have you updated NEWS.md?"
6365
)
6466
}
6567
# nocov end

0 commit comments

Comments
 (0)