Skip to content

Commit

Permalink
add exactextractr to requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
jiajic committed Oct 17, 2024
1 parent 90eddd4 commit fa6f6ed
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion vignettes/object_creation.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -458,11 +458,17 @@ The IMC data to run this tutorial can be found in the *imcdatasets* package. We

## Download data to use

The package *exactextractr* is also used due to its speed with image data extractions.

```{r, eval=FALSE}
# Ensure imcdatasets is installed.
# Ensure imcdatasets and exactextractr are installed.
if(!"imcdatasets" %in% installed.packages()) {
pak::pkg_install("imcdatasets")
}
if(!"exactextractr" %in% installed.packages()) {
pak::pkg_install("exactextractr")
}
# load dataset
imc_masks <- imcdatasets::IMMUcan_2022_CancerExample("masks")
imc_imgs <- imcdatasets::IMMUcan_2022_CancerExample("images")
Expand Down

0 comments on commit fa6f6ed

Please sign in to comment.