Running examples in 'FLightR-Ex.R' failed
The error most likely occurred in:

> ### Name: plot_likelihood
> ### Title: plot likelihood surface over map
> ### Aliases: plot_likelihood
> 
> ### ** Examples
> 
> File<-system.file("extdata", "Godwit_TAGS_format.csv", package = "FLightR")
> # to run example fast we will cut the real data file by 2013 Aug 20
> Proc.data<-get.tags.data(File, end.date=as.POSIXct('2013-07-02', tz='GMT'))
DetectedIntigeo_Mode_1tag

Data found to be logtransformed

tag saved data every300seconds, and is assumed to measure data every60seconds, and write downmax

> Calibration.periods<-data.frame(
+        calibration.start=as.POSIXct(c(NA, "2014-05-05"), tz='GMT'),
+        calibration.stop=as.POSIXct(c("2013-08-20", NA), tz='GMT'),
+        lon=5.43, lat=52.93) 
>        #use c() also for the geographic coordinates, if you have more than one calibration location
>        # (e. g.,  lon=c(5.43, 6.00), lat=c(52.93,52.94))
> 
> # NB Below likelihood.correction is set to FALSE for fast run! 
> # Leave it as default TRUE for real examples
> Calibration<-make.calibration(Proc.data, Calibration.periods, likelihood.correction=FALSE)

 checking dawn1

 checking dawn2

 checking dawn3

 checking dawn4

 checking dawn5

 checking dawn6

 checking dawn7

 checking dawn8

 checking dawn9

 checking dawn10

 checking dawn11

 checking dawn12

 checking dawn13

 checking dusk1

 checking dusk2

 checking dusk3

 checking dusk4

 checking dusk5

 checking dusk6

 checking dusk7

 checking dusk8

 checking dusk9

 checking dusk10

 checking dusk11

 checking dusk12

 checking dusk13

 checking dusk14

 checking dusk15





calibration method used:parametric.slope

> 
> Grid<-make.grid(left=0, bottom=50, right=10, top=56,
+   distance.from.land.allowed.to.use=c(-Inf, Inf),
+   distance.from.land.allowed.to.stay=c(-Inf, Inf))
> 
> all.in<-make.prerun.object(Proc.data, Grid, start=c(5.43, 52.93),
+                              Calibration=Calibration, threads=2)
likelihood correction turned off as no correction found in the calibration
making cluster
Warning message:
package "methods" in options("defaultPackages") was not found 
Warning message:
package "methods" in options("defaultPackages") was not found 
During startup - Warning messages:
1: package 'datasets' in options("defaultPackages") was not found 
2: package 'utils' in options("defaultPackages") was not found 
3: In .getClassesFromCache(Class) :
  restarting interrupted promise evaluation
Mingw-w64 runtime failure:
  VirtualProtect failed with code 0x5afError in makePSOCKcluster(names = spec, ...) : 
  Cluster setup failed. 2 of 2 workers failed to connect.
Calls: make.prerun.object ... get.Phys.Mat.parallel -> <Anonymous> -> makePSOCKcluster
Execution halted