govscienceuseR / referenceExtract

R package for extracting and cleaning citations in PDFs
0 stars 1 forks source link

Ruby issue #13

Open liza-wood opened 1 year ago

liza-wood commented 1 year ago

Users/lizawood/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/rubygems.rb:281:in find_spec_for_exe': can't find gem anystyle-cli (>= 0.a) with executable anystyle (Gem::GemNotFoundException) from /Users/lizawood/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/rubygems.rb:300:in activate_bin_path' from /Users/lizawood/.rvm/gems/ruby-3.0.0/bin/anystyle:23:in <main>'

I've tried this inside and outside an R project but anystyle has died on me. @tylerandrewscott or @sojeong-kim have either of you done any neat updates? Or should my ruby no be in .rvm? I saw in a truckee script somewhere to follow this: https://mac.install.guide/ruby/12.html but no dice

liza-wood commented 1 year ago

So it doesn't work when I run with no project and wd set to ~. BUT if I run in terminal is does work (e.g. anystyle --overwrite -f json find --no-layout /Users/lizawood/Documents/Davis/R-Projects/govscienceuseR.github.io/data/documents//20150055_Goose_Project_Draft_Environmental_Impact_Statement.pdf /Users/lizawood/Documents/Davis/R-Projects/govscienceuseR.github.io/data/reference_extracts)