vasishth / Freq_CogSci

Linear mixed models in Linguistics and Psychology: A Comprehensive Introduction
MIT License
22 stars 14 forks source link

Package intoo required but no longer available on CRAN #27

Open tmalsburg opened 2 years ago

tmalsburg commented 2 years ago

See here. As a result, it is currently impossible to compile the book (unless someone still has intoo installed on their system).

vasishth commented 2 years ago

Get the archived package and install using cmd install

tmalsburg commented 2 years ago

A couple of other packages that are used but no longer available on CRAN, complete list:

To install them:

wget https://cran.r-project.org/src/contrib/Archive/bivariate/bivariate_0.7.0.tar.gz
wget https://cran.r-project.org/src/contrib/Archive/intoo/intoo_0.4.0.tar.gz
wget https://cran.r-project.org/src/contrib/Archive/barsurf/barsurf_0.7.0.tar.gz
wget https://cran.r-project.org/src/contrib/Archive/kubik/kubik_0.3.0.tar.gz

R CMD INSTALL intoo_0.4.0.tar.gz
R CMD INSTALL kubik_0.3.0.tar.gz
R CMD INSTALL bivariate_0.7.0.tar.gz
R CMD INSTALL barsurf_0.7.0.tar.gz

Package that have neven been on CRAN:

devtools::install_github("vasishth/lingpsych")
devtools::install_github("crsh/papaja")

Package that I could install via CRAN:

install.packages(c(
"afex",
"bookdown",
"extraDistr",
"SIN",
"kableExtra",
"hypr",
"designr",
"languageR"))

In same cases, dependencies of those packages also needed to be installed but I don't list them because it was automatic.

tmalsburg commented 2 years ago

I had to compile the book dozens of time only to find out, after waiting a couple of minutes, that yet another package was missing. It would be good to either load all packages at the beginning so the compilation fails immediately if something is missing, or to have a separate script that installs all dependencies.

vasishth commented 2 years ago

yes, thanks. i will do this. am leaving this open for this reason.

tmalsburg commented 2 years ago

It might also be good to have a Makefile with a rule for cleaning the repository from any generated files (make clean). This way, you can establish that the book compiles from scratch.

vasishth commented 2 years ago

Good idea. I will test workflow for installing it on my new laptop, where I have to start from scratch. Will set up a Makefile.