Skip to content

Commit

Permalink
version 0.5.0 release - CRAN version
Browse files Browse the repository at this point in the history
Merge branch 'develop'

# Conflicts:
#	DESCRIPTION
#	cleanup
#	cleanup.win
#	src/Makevars.win
#	src/include/models.hpp
#	src/include/models.hpp.bak
  • Loading branch information
saudiwin committed Oct 31, 2018
2 parents 0dce10d + e09503a commit c52ac78
Show file tree
Hide file tree
Showing 116 changed files with 16,402 additions and 13,480 deletions.
23 changes: 12 additions & 11 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
cleanup*
^\.travis\.yml$
^.*\.Rproj$
^idealstan\.Rproj$
^\.Rproj\.user$
^chunks$
README*
package_test*
cran-comments.md
NEWS.md
^\.travis\.yml$
package_test.html
package_test.Rmd
DE 2018.Rdata
LICENSE.txt
^\.DS_Store
^\.Rmd
bfg-1*
delaware_example.R
package_test.nb.html
package_test_files
render_vignettes.R
vignette_output.txt
cran-comments.md


5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
doc
Meta
.Rproj.user
.Rhistory
.RData
Expand All @@ -8,7 +10,8 @@ src/*.so
src/*.dll
*.rds
package_test.nb.html
inst/doc
package_test_files/*
irt_standard_tst*
bfg-1.12.16.jar
src-i386
src-x64
59 changes: 50 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,51 @@
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r

language: R
sudo: false
language: r
sudo: true
cache: packages
r:
- 3.3.1
r_build_args: --no-build-vignettes --no-manual --no-resave-data
r_check_args: --no-build-vignettes --no-manual
warnings_are_errors: false


matrix:
include:
- os: linux
dist: trusty
r: release
r_binary_packages:
- devtools
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
- os: linux
dist: trusty
r: devel
r_binary_packages:
- devtools
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
- os: osx
fortran: false
osx_image: xcode10
r: release


before_install:
- mkdir -p ~/.R/
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then echo "CXX14 = g++-7 -fPIC" >> ~/.R/Makevars; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then echo "CXX14FLAGS = -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -Wno-unused-local-typedefs -Wno-ignored-attributes -Wno-deprecated-declarations -Wno-attributes -O3" >> ~/.R/Makevars; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then echo "CXX14 = clang++ -arch x86_64 -ftemplate-depth-256" >> ~/.R/Makevars; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then echo "CXX14FLAGS = -O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -Wno-unknown-pragmas" >> ~/.R/Makevars; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then echo "CC = clang" >> ~/.R/Makevars; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo tlmgr install inconsolata; fi

after_failure:
- cat /home/travis/build/saudiwin/idealstan/idealstan.Rcheck/00install.out

45 changes: 27 additions & 18 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,39 +1,48 @@
Package: idealstan
Type: Package
Title: Bayesian IRT Ideal Point Models with 'Stan'
Version: 0.2.9.2
Date: 2018-10-16
Title: Generalized IRT Ideal Point Models with 'Stan'
Version: 0.5.0
Date: 2018-10-27
Authors@R: c(person("Robert","Kubinec", role = c("aut","cre"),
email = "rmk7xy@virginia.edu"),
email = "rmk7@nyu.edu"),
person("Jonah", "Gabry", role = "ctb"),
person("Ben", "Goodrich", role = "ctb"),
person("Trustees of Columbia University",role='cph'))
BugReports: https://github.com/saudiwin/idealstan/issues
Description: Offers item-response theory (IRT) ideal-point scaling/dimension reduction methods that incorporate additional response categories and missing/censored values, including absences and abstentions, for roll call voting data (or any other kind of binary or ordinal item-response theory data). Full and approximate Bayesian inference is done via the 'Stan' engine (www.mc-stan.org).
Description: Offers item-response theory (IRT) ideal-point estimation for binary, ordinal, counts and continuous responses with time-varying and missing-data inference. Full and approximate Bayesian sampling with 'Stan' (www.mc-stan.org).
License: GPL
Depends:
Depends:
methods,
R (>= 3.4.0),
Rcpp (>= 0.12.7)
Imports:
Rcpp (>= 0.12.18)
Imports:
rstan (>= 2.18.1),
rstantools (>= 1.1.0),
methods (>= 3.3.1),
rstantools (>= 1.5.1),
dplyr,
tidyr,
stringr,
bayesplot,
ggplot2,
lazyeval,
rlang,
shinystan
shinystan,
gghighlight,
forcats,
ggrepel
Suggests:
pscl,
loo,
knitr,
rmarkdown
LinkingTo: StanHeaders (>= 2.18.0), rstan (>= 2.18.1), BH (>= 1.66), Rcpp
(>= 0.12.7), RcppEigen (>= 0.3.2.9.0)
RoxygenNote: 6.0.1
LazyData: false
VignetteBuilder: knitr
lubridate,
R.rsp
LinkingTo:
StanHeaders (>= 2.18.0),
rstan (>= 2.18.1),
BH (>= 1.66),
Rcpp (>= 0.12.7),
RcppEigen (>= 0.3.2.9.0)
Encoding: UTF-8
LazyData: true
NeedsCompilation: yes
SystemRequirements: GNU make
VignetteBuilder: R.rsp
RoxygenNote: 6.1.0
20 changes: 18 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
# Generated by roxygen2: do not edit by hand

export(derive_chain)
export(id_estimate)
export(id_extract)
export(id_log_lik)
export(id_make)
export(id_plot)
export(id_plot_all_hist)
export(id_plot_compare)
export(id_plot_cov)
export(id_plot_legis)
export(id_plot_legis_dyn)
export(id_plot_legis_var)
export(id_plot_ppc)
export(id_plot_rhats)
export(id_plot_sims)
Expand All @@ -17,37 +20,50 @@ export(id_sim_gen)
export(id_sim_resid)
export(id_sim_rmse)
export(launch_shinystan)
export(stan_trace)
exportClasses(idealdata)
exportClasses(idealstan)
exportMethods(id_extract)
exportMethods(id_log_lik)
exportMethods(id_plot)
exportMethods(id_plot_ppc)
exportMethods(id_post_pred)
exportMethods(launch_shinystan)
exportMethods(stan_trace)
exportMethods(summary)
import(Rcpp)
import(bayesplot)
import(dplyr)
import(ggplot2)
import(ggrepel)
import(lazyeval)
import(methods)
import(rstan)
import(rstantools)
importFrom(forcats,fct_relevel)
importFrom(gghighlight,gghighlight)
importFrom(rlang,as_quosure)
importFrom(rlang,parse_quosure)
importFrom(rstan,sampling)
importFrom(shinystan,as.shinystan)
importFrom(shinystan,launch_shinystan)
importFrom(stats,dbinom)
importFrom(stats,dnorm)
importFrom(stats,dpois)
importFrom(stats,median)
importFrom(stats,model.matrix)
importFrom(stats,plogis)
importFrom(stats,qlogis)
importFrom(stats,quantile)
importFrom(stats,relevel)
importFrom(stats,reorder)
importFrom(stats,rexp)
importFrom(stats,rlnorm)
importFrom(stats,rnorm)
importFrom(stats,rpois)
importFrom(stats,runif)
importFrom(stats,sd)
importFrom(stats,step)
importFrom(tidyr,gather)
importFrom(tidyr,spread)
importFrom(utils,person)
useDynLib(idealstan, .registration = TRUE)
11 changes: 9 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
#Release v0.5.0
* New models for Poisson, ordinal-graded response, Normal and Log-normal outcomes.
* Time-varying ideal point processes: random-walks and auto-regressive priors.
* Time-varying plot functions for ideal points.
* Hierarchical covariates for ideal points and item/bill discrimination.
* Switched from matrix data input to long data frames.

#Release v0.2.9.1
Fixed bugs in `id_extract` and `id_make` functions.
* Fixed bugs in `id_extract` and `id_make` functions.

#Release v0.2.9
Fixed a bug in the ideal point plot function, and also in the `auto_id` option in `id_estimate`.
* Fixed a bug in the ideal point plot function, and also in the `auto_id` option in `id_estimate`.

# Release v0.2.2
* First release on CRAN.
Expand Down
Loading

0 comments on commit c52ac78

Please sign in to comment.