Skip to content

Commit

Permalink
Temporary patch for CRAN, since they're non-communicative: skip tests…
Browse files Browse the repository at this point in the history
… using mmand that might run more than two threads
  • Loading branch information
jonclayden committed Feb 27, 2024
1 parent fb39a5e commit facd194
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tractor.base/inst/tinytest/test-35-viz.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ image <- readImageFile(system.file("extdata", "nifti", "maskedb0.nii.gz", packag
expect_null(viewImages(image, interactive=FALSE))

# Static visualisations
image <- readImageFile(system.file("extdata", "nifti", "maskedb0.nii.gz", package="tractor.base"))
fov <- image$getFieldOfView()
file <- ensureFileSuffix(tempfile(), "png")

if (requireNamespace("loder", quietly=TRUE))
if (at_home() && requireNamespace("loder", quietly=TRUE))
{
image <- readImageFile(system.file("extdata", "nifti", "maskedb0.nii.gz", package="tractor.base"))
fov <- image$getFieldOfView()
file <- ensureFileSuffix(tempfile(), "png")

createSliceGraphic(image, z=30, device="png", file=file)
expect_equal(attr(loder::inspectPng(file),"width"), fov[1])
createProjectionGraphic(image, 3, device="png", file=file)
Expand Down

0 comments on commit facd194

Please sign in to comment.