cszang / pdsi Goto Github PK
View Code? Open in Web Editor NEWCalculate (sc)PDSI in R
Calculate (sc)PDSI in R
Running pdsi() on a mac returns "Error in pdsi(12, 50, muc.clim, 1960, 2000) : Unsupported OS"; the problem seems to be that the function expects Sys.info()["sysname"] to return "Mac" when it in fact returns "Darwin".
Quits on a missing bootRes required package (on loading), which is easily resolved by installing it. Might want to add a proper warning. Had a ton of questions from people not knowing what to do with similar errors.
Otherwise, saved my day on calculating PDSI. Thanks a million!
Downloading github repo cszang/pdsi@master
Installing pdsi
'/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file --no-environ --no-save --no-restore >CMD INSTALL
'/private/var/folders/ll/kg6krgsn6sb29k59ts8ntl080000gn/T/RtmpmOyEAp/devtools4b4319288ce7/cszang-pdsi-6b8d279'
--library='/Library/Frameworks/R.framework/Versions/3.1/Resources/library' --install-tests
- installing source package ‘pdsi’ ...
** R
** exec
** inst
** preparing package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called ‘bootRes’
ERROR: lazy loading failed for package ‘pdsi’- removing ‘/Library/Frameworks/R.framework/Versions/3.1/Resources/library/pdsi’
Error: Command failed (1)
Can add a penmen ET when calculate scPDSI?
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.