Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solve detritus in temp directory problem #246

Merged
merged 6 commits into from
Jan 30, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Removed cluster call
This was probably the main problem behind #246
  • Loading branch information
florianhartig committed Jan 30, 2023
commit 21b4fe79fc7a762ab763daa6cafbfd7d6578ade2
1 change: 0 additions & 1 deletion BayesianTools.Rproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ LaTeX: pdfLaTeX

BuildType: Package
PackageUseDevtools: Yes
PackageCleanBeforeInstall: No
PackagePath: BayesianTools
PackageInstallArgs: --no-multiarch --with-keep.source
PackageCheckArgs: --as-cran
Expand Down
4 changes: 2 additions & 2 deletions BayesianTools/vignettes/InterfacingAModel.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ mymodel<-function(x){

To start a parallel computation, we will first need to create a cluster object. Here we will initiate a cluster with 2 CPU's.

```{r}
```{r, eval = F}

library(parallel)
cl <- makeCluster(2)
Expand All @@ -257,7 +257,7 @@ runParallel(c(1,2))

You could use this principle to build your own parallelized likelihood. However, something very similar to the previous loop is automatized in BayesianTools. You can directly create a parallel model evaluation function with the function generateParallelExecuter, or alternatively directly in the createBayesianSetup

```{r}
```{r, eval = F}
library(BayesianTools)
parModel <- generateParallelExecuter(mymodel)
```
Expand Down