Giter VIP home page Giter VIP logo

Comments (10)

gagolews avatar gagolews commented on May 30, 2024

This is almost identical to gagolews/stringi#155

from stringr.

hadley avatar hadley commented on May 30, 2024

@yihui I think the failure might be intermittent

from stringr.

yihui avatar yihui commented on May 30, 2024

@gagolews Oh I did not realize it had been reported. Thanks. But I do not think we have got to the bottom of this issue. It is not necessary to install stringi from Github, either. You just have to install it from source (e.g. the CRAN source package works), and the binary package from marutter's PPA does not work. Well, my experience is that there are quite a few broken binary packages in marutter's PPA...

BTW, what bothers me most about Travis is that we are still stuck in Ubuntu 12.04.

from stringr.

maxheld83 avatar maxheld83 commented on May 30, 2024

I get the sample problem, irrespective of whether stringr is loaded from github or CRAN:

>     plots <- array.viz(QmethodRes = results)  # produces plots list
Error in stri_trans_nfc(str) : 
  The requested ICU resource file cannot be found. Possible problem: ICU data has not been downloaded yet. Call `stri_install_check()`. (U_FILE_ACCESS_ERROR)
Calls: array.viz -> str_wrap -> stri_wrap -> stri_trans_nfc -> .Call
Execution halted

+1 for

fix the root cause

Ps.: is it just me or is the 3k-line log from Travis.CI even more confusing than ordinary R CMD check?

from stringr.

jeroen avatar jeroen commented on May 30, 2024

This is still not resolved. The problem is that stringi fails to detect libicu-dev on Ubuntu and instead tries to build a bundled version, which doesn't work very well.

from stringr.

jeroen avatar jeroen commented on May 30, 2024

I have proposed a solution here: gagolews/stringi#162

from stringr.

gagolews avatar gagolews commented on May 30, 2024

Maybe let's first try with debugging the Ubuntu libicu-dev-related issue?

from stringr.

gagolews avatar gagolews commented on May 30, 2024

And by the way, the U_FILE_ACCESS_ERROR is related to the missing (somehow??) icudt library. If the CRAN guys allowed me to ship icu dt with stringi src package, everything would work like a charm (this would increase the file size by 20MB)...
Anyway, resolving this issue has the highest priority before the next stringi release.

from stringr.

jeroen avatar jeroen commented on May 30, 2024

Even if we fix the autoconf check for libicu-dev this does not solve the problem of including a bundled ICU that doesn't fully work. If I forget to install libicu-dev on my system when installing stringi, I would much prefer that the installation exits with a message that I need to run apt-get install libicu-dev, rather than having stringi automatically try to build another copy of ICU.

If this would have been the case, the problem above would have been obvious from the beginning and this issue would have been resolved much sooner. I cant think of any scenario where you would want to use a DIY version of ICU when a perfectly fine one is available from the OS.

from stringr.

gagolews avatar gagolews commented on May 30, 2024

Guys, does a fix to gagolews/stringi#164 solve the current issue?

from stringr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.