Révision 4ef79560

b/src/DESCRIPTION
1 1
Package: cachecache
2 2
Maintainer: Florent Chuffart <florent.chuffart@ens-lyon.fr>
3 3
Author: Florent Chuffart
4
Version: 0.2
4
Version: 0.3
5 5
License: CeCILL 
6 6
Title: cachecache
7 7
Depends: 
b/src/R/cachecache.R
2 2
### Access to the cached content of a file via the global variable CACHE_CACHE. Load content in CACHE_CACHE if needed.
3 3
filename, ##<< The path to the file that contain dataset
4 4
class=NULL, ##<< The class of dataset
5
FORCE_RELOAD=FALSE, ##<< Force cachecache to reload the value
5
# FORCE_RELOAD=FALSE, ##<< Force cachecache to reload the value
6 6
... ##<< Parameters that will be passed to my_read
7 7
) {
8 8
  if (inherits(try(CACHE_CACHE,TRUE), "try-error") || is.null(CACHE_CACHE)) {
......
10 10
  }
11 11
  obj = list(filename=filename)
12 12
  class(obj) = class
13
  FORCE_RELOAD = FALSE
13 14
  if (is.null(CACHE_CACHE[[obj$filename]]) | FORCE_RELOAD) {
14 15
    print(paste("Loading file ",obj$filename, sep=""))
15 16
		tmp_content = my_read(obj, ...)

Formats disponibles : Unified diff