Skip to content

Commit

Permalink
Merge branch 'prune-dependencies'
Browse files Browse the repository at this point in the history
  • Loading branch information
jarioksa committed Mar 2, 2021
2 parents a732ff7 + 1217104 commit 7b9b185
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 26 deletions.
2 changes: 1 addition & 1 deletion R/sampleMcmc.R
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ sampleMcmc =
}

if(nParallel > 1){
cl = makeCluster(nParallel, type="SOCK")
cl = makeCluster(nParallel)
clusterExport(cl, c("hM","nChains","transient","samples","thin","verbose","adaptNf","initSeed","initPar","updater",
"X1", "Tr", "Y", "distr", "Pi", "C", "nr",
"mGamma", "iUGamma", "V0", "f0", "aSigma", "bSigma", "rhopw",
Expand Down
38 changes: 19 additions & 19 deletions vignettes/load_libraries.R
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# LOAD PACKAGES (BEGINNING) ######################################################################
library(devtools)
#library(devtools)
#install Rtools to be able to install BayesLogit unless you have it already
#install_url('https://cran.r-project.org/src/contrib/Archive/BayesLogit/BayesLogit_0.6.tar.gz')
library(BayesLogit)
library(withr)
library(knitr)
install_github("hmsc-r/HMSC", build_opts = c("--no-resave-data", "--no-manual"))
#library(BayesLogit)
#library(withr)
library(knitr) # kable
#install_github("hmsc-r/HMSC", build_opts = c("--no-resave-data", "--no-manual"))
library(Hmsc)
library(stats)
library(abind)
library(corrplot)
library(ggplot2)
library(nnet)
library(coda)
library(ape)
library(phytools)
library(fields)
library(MASS)
library(MCMCpack)
#library(stats)
#library(abind)
#library(corrplot)
#library(ggplot2)
#library(nnet)
#library(coda)
#library(ape)
#library(phytools)
#library(fields)
library(MASS) # mvrnorm
#library(MCMCpack)
#install_github("kassambara/easyGgplot2")
library(easyGgplot2)
library(pROC)
library(parallel)
#library(easyGgplot2)
#library(pROC)
#library(parallel)
# LOAD PACKAGES (END) ############################################################################
1 change: 0 additions & 1 deletion vignettes/vignette_3_multivariate_high.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ library(fields)

```{r I, message = F}
library(Hmsc)
library(parallel)
library(corrplot)
set.seed(1)
```
Expand Down
13 changes: 8 additions & 5 deletions vignettes/vignette_5_performance.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -501,10 +501,14 @@ for (case in cases){
```

```{r BLAS, message=F, eval=T, cache=F, echo=F}
myBLAS <- sessionInfo()$BLAS
myBLAS <- unlist(strsplit(myBLAS, .Platform$file.sep))
myBLAS <- myBLAS[length(myBLAS)]
myBLAS <- unlist(strsplit(myBLAS, "\\."))[1]
myBLAS <- extSoftVersion()["BLAS"]
if (myBLAS == "") {
myBLAS <- "unknown BLAS"
} else {
myBLAS <- unlist(strsplit(myBLAS, .Platform$file.sep))
myBLAS <- myBLAS[length(myBLAS)]
myBLAS <- unlist(strsplit(myBLAS, "\\."))[1]
}
```

### Computational time
Expand Down Expand Up @@ -638,7 +642,6 @@ boxplot(toplot, main="rho", names = cases, las = 1)
\pagebreak

```{r Data evaluation VIII, message=F, eval=T, cache=F, echo=F}
library(knitr)
rhores = matrix(ncol=ncases, nrow=3)
for (case in 1:ncases){
rhores[1,case] = mix[[case]]$es.rho
Expand Down
Binary file modified vignettes/vignette_5_performance.pdf
Binary file not shown.

0 comments on commit 7b9b185

Please sign in to comment.