Giter VIP home page Giter VIP logo

Comments (10)

gagolews avatar gagolews commented on June 16, 2024

Try doing this directly from the terminal maybe?

  1. Start R
  2. Run install.packages("stringi")

?

(I just installed stringi this way after the update to R 4.3.0)

from stringi.

LittleTealeaf avatar LittleTealeaf commented on June 16, 2024

The code snippet earlier was straight from the terminal, I tried it both in dataspell and just in the terminal and got the same errors

from stringi.

LittleTealeaf avatar LittleTealeaf commented on June 16, 2024

Just did a dummy-check and tried it again in the terminal. This is what I got

image

I'm led to believe this might be a dependency issue, but as far as I know I have everything I need installed (at least what was stated in the documentation)

from stringi.

gagolews avatar gagolews commented on June 16, 2024

I guess you should either update ICU on your system (I don't know which system are you on, so can't give you more details) or use install.packages("stringi", configure.args="--disable-pkg-config"). HTH

from stringi.

LittleTealeaf avatar LittleTealeaf commented on June 16, 2024

So using the --disable-pkg-config was able to get it installed, but I'm still having issues with other libraries, so I want to make sure that it isn't the same issue.

I'm currently running Pop_os! 22.04, and it seems I have ICU version 72.1 currently on my system. I'm trying to find out how to update that, but things are almost looking like its a "just use R version 4.2 for now" angle.

from stringi.

gagolews avatar gagolews commented on June 16, 2024

It's a Ubuntu flavour, so maybe sudo apt install libicu-dev ?

from stringi.

LittleTealeaf avatar LittleTealeaf commented on June 16, 2024

Yup, states it's already installed on the latest version (version 70.1-2). It appears that they don't have the updated version on the apt repository.

I think for now I'm going to look into downgrading to 4.2. I somewhat plan to refresh my system with a fresh OS install after my semester ends, so I'll try it again then.

from stringi.

MislavSag avatar MislavSag commented on June 16, 2024

Just to confirm I have a similar error when I try to import packages that depends on stringi:

[jmaric@padobran mlr3-supek]$ apptainer run image.sif test.R
Error: package or namespace load failed for ‘batchtools’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/home/jmaric/Rlibs/stringi/libs/stringi.so':
  libicui18n.so.60: cannot open shared object file: No such file or directory
In addition: Warning message:
package ‘batchtools’ was built under R version 4.3.1
Execution halted

Linux info:

NAME="Rocky Linux"
VERSION="8.8 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.8 (Green Obsidian)"
ANSI_COLOR="0;32"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:8:GA"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
SUPPORT_END="2029-05-31"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-8"
ROCKY_SUPPORT_PRODUCT_VERSION="8.8"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.8"

from stringi.

gagolews avatar gagolews commented on June 16, 2024

Could you try installing stringi via install.packages("stringi", configure.args="--disable-pkg-config") as per https://stringi.gagolewski.com/install.html ?

from stringi.

MislavSag avatar MislavSag commented on June 16, 2024

It seems thare were some problems with R libpaths. I have created R lib path for the user and inside container. I have deleted one T lib path and now works. Seems it is not directly connected with stringi, at least in my case.

from stringi.

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.