Skip to content

Commit

Permalink
TROUBLESHOOTING: Make sure parallelly::makeClusterPSOCK() works on ma…
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikBengtsson committed Jul 15, 2021
1 parent 3a1a7a9 commit 061cc7f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
4 changes: 3 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@ Description: A minimal, valid, complete R package that can be used as a baseline
Authors@R: c(
person("Henrik", "Bengtsson", role=c("aut", "cre", "cph"),
email = "henrikb@braju.com"))
Suggests:
testthat,
parallelly
License: GPL (>= 3)
RoxygenNote: 6.0.1
3 changes: 3 additions & 0 deletions tests/testthat.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
library(testthat)
library(teeny)
test_check("teeny")
13 changes: 13 additions & 0 deletions tests/testthat/test-parallelly.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
context("parallelly")

test_that("makeClusterPSOCK(1) works", {
cl <- parallelly::makeClusterPSOCK(1)
print(cl)
parallel::stopCluster(cl)
})

test_that("makeClusterPSOCK(2) works", {
cl <- parallelly::makeClusterPSOCK(2)
print(cl)
parallel::stopCluster(cl)
})

0 comments on commit 061cc7f

Please sign in to comment.