carmonalab / ProjecTILs

Interpretation of cell states using reference single-cell maps
GNU General Public License v3.0
234 stars 27 forks source link

namespace error in installation #6

Closed chjp closed 3 years ago

chjp commented 3 years ago

Hi, Thanks for developing the package. I encountered some errors (shown below) in the installation process. Do you have any suggestions? Thank you. Warning: namespace ‘Seurat’ is not available and has been replaced by .GlobalEnv when processing object ‘query_example_seurat’ Warning: namespace ‘Seurat’ is not available and has been replaced by .GlobalEnv when processing object ‘query_example_seurat’ ** byte-compile and prepare package for lazy loading Error: package or namespace load failed for ‘Seurat’: (converted from warning) replacing previous import ‘spatstat.utils::RelevantNA’ by ‘spatstat.sparse::RelevantNA’ when loading ‘spatstat.geom’ Error: package ‘Seurat’ could not be loaded Execution halted ERROR: lazy loading failed for package ‘ProjecTILs’

mass-a commented 3 years ago

Hello,

it seems that Seurat cannot be loaded due to some warning being converted to an error. You could try to change that behavior by setting:

Sys.setenv(R_REMOTES_NO_ERRORS_FROM_WARNINGS="true")

If the warning was harmless you should be able to proceed with the installation.