richfitz / storr

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

keys/namespaces are case insensitive on windows/mac in rds storrs #70

Open richfitz opened 6 years ago

richfitz commented 6 years ago

We're somewhat at the mercy of the filesystem here and checking is going to be potentially expensive. But this is far from ideal!

AshesITR commented 6 years ago

A potential work-around is mangle_keys = TRUE.

library(storr)

    s1 <- storr_rds("temp/nomangle")
    s2 <- storr_rds("temp/mangle", mangle_key = TRUE)

    s1$set("Hello", "World!")
    s1$set("hello", "world?")
    s1$get("Hello")
#> [1] "world?"

    s2$set("Hello", "World!")
    s2$set("hello", "world?")
    s2$get("Hello")
#> [1] "World!"

Created on 2018-10-24 by the reprex package (v0.2.1)

bedantaguru commented 5 years ago

@AshesITR but mangle_keys = TRUE is not going to help for large strings. Sometimes "path too long" error comes.