jbryer / datacache Goto Github PK
View Code? Open in Web Editor NEWPackage to maintain a data cache.
Package to maintain a data cache.
Cannot find the licensing details? Please point me to the licensing URL
> install_github('jbryer/DataCache')
Downloading GitHub repo jbryer/DataCache@master
√ checking for file 'C:\Users\scibr\AppData\Local\Temp\RtmpEzpzRu\remotes2e5037111324\jbryer-DataCache-c1889da/DESCRIPTION' ...
- preparing 'DataCache':
√ checking DESCRIPTION meta-information ...
- checking for LF line-endings in source and make files and shell scripts
- checking for empty or unneeded directories
Removed empty directory 'DataCache/inst'
Removed empty directory 'DataCache/vignettes'
- building 'DataCache_0.9.tar.gz'
Installing package into ‘C:/Users/scibr/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
* installing *source* package 'DataCache' ...
** R
** demo
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
converting help for package 'DataCache'
finding HTML links ... done
daily html
hourly html
monthly html
nDays html
nHours html
nMinutes html
now html
weekly html
yearly html
** building package indices
** testing if installed package can be loaded
Error: package or namespace load failed for 'DataCache' in namespaceExport(ns, exports):
undefined exports: cache.info, data.cache
Error: loading failed
Execution halted
ERROR: loading failed
* removing 'C:/Users/scibr/Documents/R/win-library/3.5/DataCache'
In R CMD INSTALL
Error in i.p(...) :
(converted from warning) installation of package ‘C:/Users/scibr/AppData/Local/Temp/RtmpEzpzRu/file2e50149278b0/DataCache_0.9.tar.gz’ had non-zero exit status
'weatherData' is unavailable
Hey, thanks for your cache code, very useful.
I found a simple bug, I think it has to do with your use of wildcards when looking for the cache file.
Failing example
library(DataCache)
generate <- function () {
return( list( a='b'))
}
data.cache(generate, cache.name='asdf', cache.dir='123')
data.cache(generate, cache.name='as', cache.dir='123')
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.