monocle3 and spData
0
0
Entering edit mode
2.5 years ago
Bogdan ★ 1.4k

Dear All,

has anyone encountered the situation below :

some functions in Monocle3 on my machine requires "spData" and when I do aim to install spData, the message is :

**

geos_methods.cpp: In member function ‘std::vector<double> SpatVector::clearance()’:
geos_methods.cpp:1602:21: error: ‘GEOSMinimumClearanceLine_r’ was not declared in this scope
 1602 |   GEOSGeometry* w = GEOSMinimumClearanceLine_r(hGEOSCtxt, g[i].get());
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [geos_methods.o] Error 1
ERROR: compilation failed for package ‘terra’
* removing ‘/home/btanasa/.R/terra’
ERROR: dependency ‘terra’ is not available for package ‘raster’
* removing ‘/home/btanasa/.R/raster’
ERROR: dependency ‘raster’ is not available for package ‘spData’
* removing ‘/home/btanasa/.R/spData’
ERROR: dependency ‘spData’ is not available for package ‘spatialreg’
* removing ‘/home/btanasa/.R/spatialreg’
The downloaded source packages are in
  ‘/local/scratch/btanasa/slrmtmp.28511097/Rtmp2S7dNY/downloaded_packages’
Warning messages:
1: In install.packages("spData", dependencies = TRUE) :
  installation of package ‘terra’ had non-zero exit status
2: In install.packages("spData", dependencies = TRUE) :
  installation of package ‘raster’ had non-zero exit status
3: In install.packages("spData", dependencies = TRUE) :
  installation of package ‘spData’ had non-zero exit status
4: In install.packages("spData", dependencies = TRUE) :
  installation of package ‘spatialreg’ had non-zero exit status
> knn_test_res <- graph_test(cds,  neighbor_graph="knn", cores=7)
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  there is no package called ‘spData

**

monocle3 • 1.1k views
ADD COMMENT
0
Entering edit mode

The error message clearly states the issue: terra,raster, and spatialreg are not installed. Install them (same order 1-2-3-4`) and it should work.

ADD REPLY
0
Entering edit mode

Thanks. Obviously, I have tried to install these dependencies / packages and did not work.

The question is : Could I use Monocle3 without using spdata package ? Any suggestions ?

ADD REPLY

Login before adding your answer.

Traffic: 1807 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6