richfitz / storr

:package: Object cacher for R

Home Page:http://richfitz.github.io/storr

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Base64 encoding and case insensitive file systems

wlandau opened this issue · comments

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.

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?

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