2 followers Follow

Strange interaction between devtools and my own package

I'm working on a package of my own, and hosting it on github. This is my first package, and at first I thought I was documenting my functions wrong, but it actually seems to be a result of a strange interaction between devtools, or devtools::install_github() and the documentation. Here's the bug:

# RStudio version 0.98.456
# R version 3.0.2 (2013-09-25)
# Platform: x86_64-apple-darwin10.8.0 (64-bit)

# locale:
# [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
# attached base packages:
# [1] stats     graphics  grDevices utils     datasets  methods   base     
# loaded via a namespace (and not attached):
# [1] tools_3.0.2

install_github("FAVErtools", "JoFrhwld")

What shows up in the help window is:

Error in fetch(key) : lazy-load database '�' is corrupt

Also, if I try tab-autocompletion of read.plotnik(), I get the following error in the console:

Error in fetch(key) : lazy-load database '�' is corrupt
In addition: Warning messages:
1: In fetch(key) : internal error -3 in R_decompress1
2: In strsplit(msg, "\n") : input string 1 is invalid in this locale
3: In fetch(key) : internal error -3 in R_decompress1

However, the same procedure in the regular R gui does not result in an error. The documentation just pops open. Also if I just restart RStudio after installing FAVErtools and load it, I don't get any errors with ?read.plotnik nor with the tab-autocomplete.

Josef Fruehwald

1 comment