search for: stringi

Displaying 20 results from an estimated 97 matches for "stringi".

Did you mean: string
2017 Jun 29
2
Cannot install knitr
Dear All, I am trying to install the package knitr but getting the following error: ---------------------- Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared object '/usr/lib64/R/library/stringi/libs/stringi.so': libicui18n.so.56: cannot open shared object file: No such file or directory Error : unable to load R code in package ?knitr? ERROR: lazy loading failed for package ?knitr? * removing ?/usr/lib64/R/library/knitr? * restoring previous ?/usr/lib64/R/library/knitr? -------------...
2017 Jun 22
2
Missing dependencies in pkg installs
...same "configuration not executable" error. So, made a tempfunc that was a copy of tools:::.install_packages and edited the file_test("-x","configure") line to return a TRUE now I get a Permission Denied error (even if I run as root) > tempfunc("/home/meconk/stringi_1.1.5.tar.gz") * installing to library '/usr/lib64/R/library' * installing *source* package 'stringi' ... ** package 'stringi' successfully unpacked and MD5 sums checked sh: ./configure: Permission denied ERROR: configuration failed for package 'stringi' * remov...
2017 Jun 22
3
Missing dependencies in pkg installs
...kages I get the same error. I also tried using R CMD INSTALL from the terminal and install.packages with a local file pointing to the very same tar.gz file that shows the executable bit set. All result in the same "configure is not executable" result. [meconk at dcex1102shinypr ~]$ ls -l stringi/configure -rwxr-xr-x 1 meconk meconk 173757 Apr 7 11:43 stringi/configure [meconk at dcex1102shinypr ~]$ sudo R [sudo] password for meconk: R version 3.4.0 (2017-04-21) -- "You Stupid Darkness" Copyright (C) 2017 The R Foundation for Statistical Computing Platform: x86_64-redhat-linux-g...
2017 Jun 22
0
Missing dependencies in pkg installs
...y it isn't.... Duncan > > So, made a tempfunc that was a copy of tools:::.install_packages and edited the file_test("-x","configure") line to return a TRUE > > now I get a Permission Denied error (even if I run as root) > >> tempfunc("/home/meconk/stringi_1.1.5.tar.gz") > * installing to library '/usr/lib64/R/library' > * installing *source* package 'stringi' ... > ** package 'stringi' successfully unpacked and MD5 sums checked > sh: ./configure: Permission denied > ERROR: configuration failed for package...
2017 Jun 22
0
Missing dependencies in pkg installs
...is not executable" result. > That's very mysterious. This is hard to debug, because R runs a separate process to do the installs. If you want to track this down you can debug the code as follows. 1. Manually download the tarball, using any method (perhaps download.packages("stringi", destdir = ".", type = "source"). 2. In R, run debug(tools:::.install_packages) tools:::.install_packages("stringi_1.1.5.tar.gz") You can single step until you see the message, and try to diagnose why it is happening. Watch out, this function will exit R at...
2017 Jun 22
2
Missing dependencies in pkg installs
I am using debug on the .install_packages function...stepping through. Once the temporary folder is created and the tar file expanded I run file_test and get a FALSE back indicating that the configure file is not executable. [1] "/tmp/RtmpMM6iC1/R.INSTALLc5ca415e4310/stringi" Browse[2]> dir(new) [1] "DESCRIPTION" "INSTALL" "LICENSE" "MD5" [5] "NAMESPACE" "NEWS" "R" "cleanup" [9] "configure" "configure.win" "inst&...
2017 Jun 22
0
Missing dependencies in pkg installs
...ccess(filename, 1L). That in turn calls the C library function access(..., X_OK). The ... is the name of the file, translated into the local encoding and expanded. As far as I can see, that means ... should be exactly the string below. > > [1] "/tmp/RtmpMM6iC1/R.INSTALLc5ca415e4310/stringi" The only thing I can think of is that your system is protecting you from executing a newly created file until some sort of virus or other check is done. (This is common on Windows, but I've never heard of it before on Linux.) Hopefully someone else can help... Duncan Murdoch >...
2017 Jun 22
0
Missing dependencies in pkg installs
...e tarball from CRAN, which means the second is unlikely (unless it was very recently fixed), but the first is still possible. One test is to manually expand the tarball, then use both ls and R's test to see if the executable bit is set and is detected by R. For example, after downloading stringi_1.1.5.tar.gz you expand it using tar zxvf stringi_1.1.5.tar.gz and use ls -l stringi/configure to see if the system thinks it is executable, and in R, file_test("-x", "stringi/configure") to see what R sees. Duncan Murdoch On 22/06/2017 3:38 AM, Martin Maechler wrote: &g...
2017 Jun 22
2
Missing dependencies in pkg installs
...pend some time understanding what it is talking about. OTOH, it is *THE* official document on the topic, written and constantly updated by the R core team. Anyway: " ERROR: 'configure' exists but is not executable " is I think a crucial piece of information .. it's from stringi's installation failure, and the top level directory of stringi (1.1-5) in a Unix like (ls -l with user group names removed) looks like: -rw-r--r--. 1451 Apr 7 15:08 DESCRIPTION -rw-r--r--. 6207 Apr 7 11:21 INSTALL -rw-r--r--. 3580 Mar 21 13:29 LICENSE -rw-r--r...
2020 Jun 27
1
Error in substring: invalid multibyte string
...tu). However I was more concerned with the inconsistency in results between substr and regexpr. I was expecting that if one of them errors because of an unknown encoding then the other should as well. Even better, if regexpr works, why shouldn't substr work as well? Incidentally the analogous stringi function stri_sub works fine in this case: > stringi::stri_sub("<I>Jens Oehlschl\xe4gel-Akiyoshi", 1, 100) [1] "<I>Jens Oehlschl\xe4gel-Akiyoshi" But the stringi analog to nchar gives a similar warning: > stringi::stri_length("<I>Jens Oehlschl\xe4...
2017 Jun 21
2
Missing dependencies in pkg installs
...- see the 'R Installation and dministration Manual' I did not find the R Installation and Administration Manual helpful. > install.packages("Hmisc") Installing package into '/usr/lib64/R/library' (as 'lib' is unspecified) also installing the dependencies 'stringi', 'evaluate', 'reshape2', 'stringr', knitr', 'ggplot2', 'htmlTable', 'viridis' trying URL 'https://cloud.r-project.org/src/contrib/stringi_1.1.5.tar.gz' Content type 'application/x-gzip' length 3645872 bytes (3.5 MB) =========...
2017 Jun 22
0
Missing dependencies in pkg installs
...and dministration Manual' I did not find the R Installation and Administration Manual helpful. > > >> install.packages("Hmisc") > Installing package into '/usr/lib64/R/library' > (as 'lib' is unspecified) > also installing the dependencies 'stringi', 'evaluate', 'reshape2', 'stringr', knitr', 'ggplot2', 'htmlTable', 'viridis' > > trying URL 'https://cloud.r-project.org/src/contrib/stringi_1.1.5.tar.gz' > Content type 'application/x-gzip' length 3645872 bytes (3....
2020 Jun 26
2
Error in substring: invalid multibyte string
Hi all, I'm getting the following error from substring: > substr("<I>Jens Oehlschl\xe4gel-Akiyoshi", 1, 100) Error in substr("<I>Jens Oehlschl\xe4gel-Akiyoshi", 1, 100) : invalid multibyte string at '<e4>gel-A<6b>iyoshi' Is that normal / intended? I've tried setting the Encoding/locale to Latin-1/UTF-8 but that does not help. nchar
2020 Sep 11
2
CRAN metadata broken?
E.g. in https://cran.r-project.org/bin/macosx/contrib/4.0/PACKAGES there is Package: stringi Version: 1.5.3 but there is no such binary at https://cran.r-project.org/bin/macosx/contrib/4.0/ FYI, G.
2019 Aug 29
2
Feature request: non-dropping regmatches/strextract
Thank you! I greatly appreciate your consideration, though of course it is up to you. I think many people switch to stringr/stringi simply because functions in those packages have some consistent design choices, for example, they do not drop empty/missing matches, which facilitates array-based programming. For example, in the cases where one needs to make a new column in a data.frame (data.table, tibble, etc.) of regex extracti...
2023 Mar 31
1
Extraer texto de una columna en Excel
Muchas gracias por la alternativa de utilizar la librería stringi, Carlos, no la conocía. On Fri, 31 Mar 2023 at 12:11, David Camilo Gomez Medina < dcgomezme en unal.edu.co> wrote: > Muchas gracias Carlos, lo que quiero hacer es lo siguiente: extraer el > texto que hay entre textura/s hasta el punto final. > Ejemplo: > *Moderadamente profundos...
2016 Mar 16
2
no puedo instalar knitr y Rmarkdown en ubuntu
...uRv1d/downloaded_packages/stringr_1.0.0.tar.gz? guardado [34880/34880] * installing *source* package ?stringr? ... ** package ?stringr? successfully unpacked and MD5 sums checked ** R ** inst ** preparing package for lazy loading Error in library.dynam(lib, package, package.lib) : shared object ?stringi.so? not found ERROR: lazy loading failed for package ?stringr? * removing ?/home/jose210179/R/i686-pc-linux-gnu-library/3.2/stringr? Warning in install.packages : installation of package ?stringr? had non-zero exit status The downloaded source packages are in ?/tmp/RtmpquRv1d/downloaded_pack...
2017 Aug 17
2
How to install Tidyverse on Ubuntu 17.04? Getting gcc errors for -fstack-protector-strong and -Wdate-time
...; install.packages("tidyverse") Installing package into ?/home/popx/R/x86_64-pc-linux-gnu-library/3.4? (as ?lib? is unspecified) also installing the dependencies ?colorspace?, ?munsell?, ?plyr?, ?psych?, ?reshape2?, ?bindrcpp?, ?Rcpp?, ?digest?, ?scales?, ?curl?, ?openssl?, ?cellranger?, ?stringi?, ?selectr?, ?tidyselect?, ?broom?, ?dplyr?, ?forcats?, ?ggplot2?, ?haven?, ?httr?, ?jsonlite?, ?lubridate?, ?modelr?, ?purrr?, ?readr?, ?readxl?, ?stringr?, ?tibble?, ?rvest?, ?tidyr?, ?xml2? trying URL 'https://cran.rstudio.com/src/contrib/colorspace_1.3-2.tar.gz' Content type 'appli...
2018 Aug 30
1
build package with unicode (farsi) strings
...). The full > code table is available at https://www.utf8-chartable.de It's a little easier to do this with code: letters_fa <- c('???','?','?','?','?','?','?','?','?','?','?','?') writeLines(stringi::stri_escape_unicode(letters_fa)) #> \u0627\u0644\u0641 #> \u0628 #> \u067e #> \u062a #> \u062b #> \u062c #> \u0686 #> \u062d #> \u062e #> \u0631 #> \u0632 #> \u062f Hadley -- http://hadley.nz
2017 Jun 22
2
Missing dependencies in pkg installs
...turn calls the > C library function access(..., X_OK). The ... is the name of the file, > translated into the local encoding and expanded. As far as I can see, > that means ... should be exactly the string below. > > > > [1] "/tmp/RtmpMM6iC1/R.INSTALLc5ca415e4310/stringi" > > The only thing I can think of is that your system is protecting you from > executing a newly created file until some sort of virus or other check > is done. (This is common on Windows, but I've never heard of it before > on Linux.) Just a thought - are you ru...