Skip to content

Commit

Permalink
Add release install instructions to README
Browse files Browse the repository at this point in the history
  • Loading branch information
venpopov committed Feb 13, 2024
1 parent 3cc3662 commit 697c38c
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 25 deletions.
61 changes: 45 additions & 16 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -60,26 +60,57 @@ bmm::supported_models()

## Installation

Currently, we are working on getting the package ready to be submitted to CRAN.
For now, you have to install the development version of bmm from
[GitHub](https://github.com/) with:
Currently, we are working on getting the package ready to be submitted
to CRAN. Until then, you can install the latest version of the package
from GitHub.

You can install the latest beta release of bmm with:

``` r
# install.packages("devtools")
devtools::install_github("venpopov/bmm")
if (!requireNamespace("remotes")) {
install.packages("remotes")
}
remotes::install_github("venpopov/bmm@*release")
```

All the vignettes are also available on the [bmm
This does not install the vignettes, which take a long time to build,
but they are all available on the [bmm
website](https://venpopov.github.io/bmm/).

The package was significantly updated on Feb 03, 2024. If you are following
older versions (earlier than Version 6) of the [Tutorial
preprint](https://osf.io/preprints/psyarxiv/umt57), you need to install the
0.0.1 version of the bmm package with:
Because `bmm` is based on `brms` and `stan` it requires a working C++
compiler. If you are already using `brms`, you are good to go and can
install the package as described above. If you are not using `brms` yet,
we recommend the following steps:

- Install and configure a C++ compiler. Detailed instructions
[here](https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started#configuring-c-toolchain)
- Install
[rstan](https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started)
and/or
[cmdstanr](https://mc-stan.org/cmdstanr/articles/cmdstanr.html). We
recommend using `cmdstanr`.
- Install [brms](https://paul-buerkner.github.io/brms/#installation)
- Install `bmm` as described above

You can also install the development version of bmm with:

``` r
# install.packages("devtools")
devtools::install_github("venpopov/[email protected]")
if (!requireNamespace("remotes")) {
install.packages("remotes")
}
remotes::install_github("venpopov/bmm")
```

The package was significantly updated on Feb 03, 2024. If you are
following older versions (earlier than Version 6) of the [Tutorial
preprint](https://osf.io/preprints/psyarxiv/umt57), you need to install
the 0.0.1 version of the bmm package with:

``` r
if (!requireNamespace("remotes")) {
install.packages("remotes")
}
remotes::install_github("venpopov/[email protected]")
```

## The general structure of the bmm package
Expand All @@ -103,7 +134,7 @@ end users. This way researchers that face challenges in writing their own STAN
code to implement such models themselves can still use these models in almost
any experimental design.

### Fitting models using the bmm
## Fitting models using the bmm

The core function of the bmm package is the `fit_model` function. This function
takes:
Expand Down Expand Up @@ -190,7 +221,7 @@ package](https://venpopov.github.io/bmm/articles/index.html) or [here for the
development version](https://venpopov.github.io/bmm/dev/articles/index.html).


### Exploring cogntive measurement models
## Exploring cogntive measurement models

To aid users in improving their intuition about what different models predict
for observed data given a certain parameter set, the `bmm` package also includes
Expand Down Expand Up @@ -225,8 +256,6 @@ ggplot(data = simData, aes(x = x)) +
```




## Contributing to the `bmm` package

Should be interested in contributing a model to the `bmm` package, you should
Expand Down
49 changes: 40 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,25 +65,56 @@ bmm::supported_models()
## Installation

Currently, we are working on getting the package ready to be submitted
to CRAN. For now, you have to install the development version of bmm
from [GitHub](https://github.com/) with:
to CRAN. Until then, you can install the latest version of the package
from GitHub.

You can install the latest beta release of bmm with:

``` r
# install.packages("devtools")
devtools::install_github("venpopov/bmm")
if (!requireNamespace("remotes")) {
install.packages("remotes")
}
remotes::install_github("venpopov/bmm@*release")
```

All the vignettes are also available on the [bmm
This does not install the vignettes, which take a long time to build,
but they are all available on the [bmm
website](https://venpopov.github.io/bmm/).

Because `bmm` is based on `brms` and `stan` it requires a working C++
compiler. If you are already using `brms`, you are good to go and can
install the package as described above. If you are not using `brms` yet,
we recommend the following steps:

- Install and configure a C++ compiler. Detailed instructions
[here](https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started#configuring-c-toolchain)
- Install
[rstan](https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started)
and/or
[cmdstanr](https://mc-stan.org/cmdstanr/articles/cmdstanr.html). We
recommend using `cmdstanr`.
- Install [brms](https://paul-buerkner.github.io/brms/#installation)
- Install `bmm` as described above

You can also install the development version of bmm with:

``` r
if (!requireNamespace("remotes")) {
install.packages("remotes")
}
remotes::install_github("venpopov/bmm")
```

The package was significantly updated on Feb 03, 2024. If you are
following older versions (earlier than Version 6) of the [Tutorial
preprint](https://osf.io/preprints/psyarxiv/umt57), you need to install
the 0.0.1 version of the bmm package with:

``` r
# install.packages("devtools")
devtools::install_github("venpopov/[email protected]")
if (!requireNamespace("remotes")) {
install.packages("remotes")
}
remotes::install_github("venpopov/[email protected]")
```

## The general structure of the bmm package
Expand All @@ -104,7 +135,7 @@ cognitive measurement models for end users. This way researchers that
face challenges in writing their own STAN code to implement such models
themselves can still use these models in almost any experimental design.

### Fitting models using the bmm
## Fitting models using the bmm

The core function of the bmm package is the `fit_model` function. This
function takes:
Expand Down Expand Up @@ -192,7 +223,7 @@ package](https://venpopov.github.io/bmm/articles/index.html) or [here
for the development
version](https://venpopov.github.io/bmm/dev/articles/index.html).

### Exploring cogntive measurement models
## Exploring cogntive measurement models

To aid users in improving their intuition about what different models
predict for observed data given a certain parameter set, the `bmm`
Expand Down
Binary file modified man/figures/README-unnamed-chunk-4-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 697c38c

Please sign in to comment.