page

Dec 8, 2021

[Seurat] install error : object ‘markvario’ is not exported by 'namespace:spatstat'

> library("Seurat")
Error: package or namespace load failed for ‘Seurat’:
 object ‘markvario’ is not exported by 'namespace:spatstat'
In addition: Warning message:
package ‘Seurat’ was built under R version 3.6.3

 

Solve : downgrade "spatstat"

install.packages('devtools')
remove.packages(grep("spatstat", installed.packages(), value = T))
.rs.restartR()
devtools::install_version("spatstat", version = "1.64-1")


for details

https://github.com/mojaveazure/seurat-disk/issues/56

The {spatstat} package made updates that moved some of their functions to other packages. This broke {Seurat}, which in turn, breaks {SeuratDisk}. We are working on a fix for {Seurat} to solve this; in the mean time, you should be able to downgrade your {spatstat} installation with

remotes::install_version("spatstat", version = "1.64-1")

Once {Seurat} is updated to support the latest version of {spatstat}, this issue should be resolved.