ewenme / geniusr

work with data & lyrics from Genius
https://ewenme.github.io/geniusr/
Other
50 stars 15 forks source link

geniusr and geniusR package conflict #7

Closed TinasheMTapera closed 5 years ago

TinasheMTapera commented 6 years ago

After installing both JosiahParry's geniusR:

devtools::install_github("josiahparry/geniusR") library(geniusR)

and ewenme's geniusr in one session:

install.packages("geniusr") library(geniusr)

R seems to only keep one of the two in my packages library /Library/Frameworks/R.framework/Versions/3.5/Resources/library, usually geniusr. I noticed this because functions from geniusr seemed to work fine, but gives this error with geniusR::genius_album():

Error in mutate_impl(.data, dots) : Evaluation error: lazy-load database '/Library/Frameworks/R.framework/Versions/3.5/Resources/library/geniusR/R/geniusR.rdb' is corrupt.

This is confirmed when I check the directory, when I restart the session, reinstall packages, even when I reinstall R and RStudio. Somehow, geniusr seems to be greedily removing geniusR's directory from the /library directory. Such an unexpected corner case but it was going to come up I'm afraid.

Version:

R.version _
platform x86_64-apple-darwin15.6.0
arch x86_64
os darwin15.6.0
system x86_64, darwin15.6.0
status
major 3
minor 5.0
year 2018
month 04
day 23
svn rev 74626
language R
version.string R version 3.5.0 (2018-04-23) nickname Joy in Playing

TinasheMTapera commented 6 years ago

Addendum: whichever package is installed last is the one that persists

ewenme commented 5 years ago

referenced here. hope that helped!