DistanceDevelopment / spatial-workshops

Distance sampling workshop content
http://distancesampling.org/workshops/
2 stars 0 forks source link

Problems with D7 simulation #53

Open erex opened 7 years ago

erex commented 7 years ago

running on vanilla machine in computer lab

First challenge :

no package called dotCall64

needs to be added to dependency list and packages installed with D7

Second (worse challenge):

> load.workspace()
> source('C:\\Program Files (x86)\\Distance 7\\support.r')
> source('C:\\Program Files (x86)\\Distance 7\\dssim.support.r')
> file.create('C:\\Users\\creem016\\AppData\\Local\\Temp\\dst35959\\res.r')
[1] TRUE
> file.create('C:\\Users\\creem016\\AppData\\Local\\Temp\\dst35959\\stat.r')
[1] TRUE
> 
> region.shapefile <- read.shapefile('C:/Users/creem016/Documents/eric-p4/DSsimExercise.dat/Study_ar')
> region.1 <- make.region(region.name = 'Study area', units = 'm', shapefile = region.shapefile)
> rm(region.shapefile)
> 
> density.1 <- make.density(region = region.1, x.space = 15000, y.space = 15000, constant = c(1))
Error in buffered.gaps[[strat]] : subscript out of bounds
Calls: make.density ... .local -> get.surface.constant -> extract.spat.poly.coords
Execution halted

don't know cause or remedy of this error; complaint seems based around strat


Postscript Error does not occur when spacing argument is changed from 15000 to 1000

erex commented 7 years ago

Warning rather than error with D7 implementation of DSsim:

image

again remove.dssim.support() called twice, generating warning because objects don't exist when trying to remove a second time