swotherspoon / sgat Goto Github PK
View Code? Open in Web Editor NEWSolar/Satellite Geolocation for Animal Tracking
Solar/Satellite Geolocation for Animal Tracking
We've seen this:
# http://ornithologyexchange.org/forums/topic/28015-bastag-flightr-mac-osx/
wl<-preprocessLight(d.lux, threshold, offset = offset,lmax=12)
Error in setGraphicsEventEnv(which, as.environment(list(...))) :
this graphics device does not support event handling
# I am using Mac OS X 10.11.3 El Capitan, R version 3.2.4 Very Secure Dishes
Workaround is
# try opening the graphics window first with
X11(type = "Xlib")
I tried updating R to 3.6.1, and SGAT does not install correctly. Below is the output from the failed install.
I re-installed 3.5.3 and the install worked fine.
> devtools::install_github("SWotherspoon/SGAT")
Downloading GitHub repo SWotherspoon/SGAT@master
Installing 1 packages: coda
trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.6/coda_0.19-3.tgz'
Content type 'application/x-gzip' length 326688 bytes (319 KB)
==================================================
downloaded 319 KB
The downloaded binary packages are in
/var/folders/9j/vv9dn52j4db83kq0mtky6tdm0000gn/T//RtmpgWbl5F/downloaded_packages
✔ checking for file ‘/private/var/folders/9j/vv9dn52j4db83kq0mtky6tdm0000gn/T/RtmpgWbl5F/remotes1c0b5c03315c/SWotherspoon-SGAT-952d6f4/DESCRIPTION’ ...
─ preparing ‘SGAT’:
✔ checking DESCRIPTION meta-information ...
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ looking to see if a ‘data/datalist’ file should be added
─ building ‘SGAT_0.1.3.tar.gz’
* installing *source* package ‘SGAT’ ...
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
sh: line 1: 7309 Segmentation fault: 11 R_TESTS= '/Library/Frameworks/R.framework/Resources/bin/R' --no-save --slave 2>&1 < '/var/folders/9j/vv9dn52j4db83kq0mtky6tdm0000gn/T//RtmpBlsWbe/file1c863b82c4f6'
*** caught segfault ***
address 0x31, cause 'memory not mapped'
Traceback:
1: Module(module, mustStart = TRUE, where = env)
2: doTryCatch(return(expr), name, parentenv, handler)
3: tryCatchOne(expr, names, parentenv, handlers[[1L]])
4: tryCatchList(expr, classes, parentenv, handlers)
5: tryCatch(Module(module, mustStart = TRUE, where = env), error = function(e) e)
6: loadModule(module = "spmod", what = TRUE, env = ns, loadNow = TRUE)
7: (function (ns) loadModule(module = "spmod", what = TRUE, env = ns, loadNow = TRUE))(<environment>)
8: doTryCatch(return(expr), name, parentenv, handler)
9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
10: tryCatchList(expr, classes, parentenv, handlers)
11: tryCatch((function (ns) loadModule(module = "spmod", what = TRUE, env = ns, loadNow = TRUE))(<environment>), error = function(e) e)
12: eval(substitute(tryCatch(FUN(WHERE), error = function(e) e), list(FUN = f, WHERE = where)), where)
13: eval(substitute(tryCatch(FUN(WHERE), error = function(e) e), list(FUN = f, WHERE = where)), where)
14: .doLoadActions(where, attach)
15: methods::cacheMetaData(ns, TRUE, ns)
16: loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
17: namespaceImport(ns, loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]), from = package)
18: loadNamespace(package = package, lib.loc = lib.loc, keep.source = keep.source, keep.parse.data = keep.parse.data, partial = TRUE)
19: withCallingHandlers(expr, packageStartupMessage = function(c) invokeRestart("muffleMessage"))
20: suppressPackageStartupMessages(loadNamespace(package = package, lib.loc = lib.loc, keep.source = keep.source, keep.parse.data = keep.parse.data, partial = TRUE))
21: code2LazyLoadDB(package, lib.loc = lib.loc, keep.source = keep.source, keep.parse.data = keep.parse.data, compress = compress, set.install.dir = set.install.dir)
22: tools:::makeLazyLoading("SGAT", "/Library/Frameworks/R.framework/Versions/3.6/Resources/library/00LOCK-SGAT/00new", keep.source = FALSE, keep.parse.data = FALSE, set.install.dir = "/Library/Frameworks/R.framework/Versions/3.6/Resources/library/SGAT")
An irrecoverable exception occurred. R is aborting now ...
ERROR: lazy loading failed for package ‘SGAT’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/SGAT’
Error: Failed to install 'SGAT' from GitHub:
(converted from warning) installation of package ‘/var/folders/9j/vv9dn52j4db83kq0mtky6tdm0000gn/T//RtmpgWbl5F/file1c0b271600b8/SGAT_0.1.3.tar.gz’ had non-zero exit status
Multiple SGAT functions produce error:
Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘shift’ for signature ‘"numeric"’
Seems like the cause is an update to the format of arguments in raster::shift??
Hello, I am trying to plot a track using:
path <- thresholdPath(d.twl$Twilight,
d.twl$Rise,
zenith = zenith0,
tol = 0,
unfold = TRUE)
I get data like this:
path$x[490:500,]
lon lat
[1,] -238.3928 11.1458340
[2,] -239.2741 5.0745154
[3,] -239.9010 -6.0903358
[4,] -239.3078 -17.9897554
[5,] -239.0877 -16.6432785
[6,] -238.8389 -0.0645753
[7,] -238.5665 9.7964650
[8,] -238.7752 10.2706688
[9,] -238.8887 9.5461795
[10,] -239.1979 6.2832790
[11,] -239.2285 -0.1804215
The track looks correct spatially, but the longitude cannot be greater than -180?
I set the unfold
parameter to true as the track crosses the dateline, but it doesn't appear to make any difference. Any thoughts, gratefully received.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.