Giter VIP home page Giter VIP logo

cachemer's People

Contributors

tazovsky avatar

Stargazers

 avatar

Watchers

 avatar

cachemer's Issues

atrybut 'names' [3] musi mieć tę samą długość co wektor [2]

Fix error:

Błąd w poleceniu 'names(qte.list) <- names(res)':
atrybut 'names' [3] musi mieć tę samą długość co wektor [2]

Code to reproduce error:

dir.create(tmp.dir <- tempfile())
config.file <- file.path(tmp.dir, "config.yaml")
cache <- cachemer$new(path = config.file)

testFun <- function(a, b) {
  (a+b) ^ (a*b)
}

cache$setLogger(TRUE)

result1 %c-% testFun(2, 3)

Handle dolar `$` in LHS

as.character(target)[1] is not good for parsing variable name to string because it causes assignement to $:

Browse[3]> target
state$active_covariates
Browse[3]> as.character(target)[1]
[1] "$"

Add readme

Add readme containing:

  • Package description
  • Installation tutorial
  • How to use
  • Some use cases
  • Microbenchmark

Save cache to file and restore

  • Add method to save current cache to file
  • Add method to restore cache from file
  • Investigate what would be the best output format for saving cache
  • Use future to save cache in background and do not block code

get cached object

Create method to get cached object by:

  • hash
  • function name
  • output value (conditions: %in%, <=, >=?)

HINT: Create data.table object from cached objects to filter fast and easy.

Collect statistics

Collect statistics about the use of functions, arguments, parent functions, etc.

Add CI and badges

  • Add CI to project (Travis?)
  • Test coverage badge
  • Build badge
  • Download per month badge

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.