richfitz / storr

:package: Object cacher for R
http://richfitz.github.io/storr
Other
117 stars 10 forks source link

Base64 encoding and case insensitive file systems #95

Open wlandau opened 5 years ago

wlandau commented 5 years ago

The Windows file system is case-insensitive, which could cause name collisions in rare edge cases.

library(storr)
s <- storr::storr_rds(tempfile(), mangle_key = TRUE)
s$set("a", TRUE)
s$set("É", FALSE)
s$list()
#> [1] "É"
s$get("a")
#> [1] FALSE

Created on 2019-01-02 by the reprex package (v0.2.1)

Base32 encoding would exacerbate #94, but not by much.

richfitz commented 5 years ago

OSX too! This is probably not something that can be worked around directly, but something that should be documented. Something that could be dealt with in the #89 work?

wlandau commented 5 years ago

Yeah, I think documentation + #90 may be enough, especially since this is a rare enough edge case.