Closed austingrosel closed 5 years ago
this is not the full configure output, I need more data
Are you in an online or offline environment ? I had issues with packrat in an offline environment to indicate the ICU source to compile with.
The build process requires an external artifact (icudt...zip) which should be handled by the R dependency process. Downloading it during the build is not clean. In off-line environment this WON'T work. Please rework the stringi Makefile.
In an offline environment, you can download the source (icudt...zip) and configure an environment variable to indicate to the installation process where the downloaded bundle is and not try to download it.
https://github.com/gagolews/stringi/blob/d8ab12f53c10cd13736a0fca88d6fceda1760357/INSTALL#L100
This can also be done directly in R with install.packages("stringi", configure.vars="ICUDT_DIR=<icudt_dir>")
if necessary.
It is not perfect but this can be done offline.
Not sure the issue this here 🤔
icudt already downloaded
possibly related to #296
Should be working now.
By the way, if you have no internet access on local machines, you can build a distributable source package that includes all the required
ICU data files (for off-line use) by omitting some relevant lines in
the .Rbuildignore
file. The following command sequence should do the trick:
wget https://github.com/gagolews/stringi/archive/master.zip -O stringi.zip
unzip stringi.zip
sed -i '/\/icu..\/data/d' stringi-master/.Rbuildignore
R CMD build stringi-master
Assuming the most recent development version is 1.3.1,
a file named stringi_1.3.1.tar.gz
is created in the current working directory.
The package can now be installed (the source bundle may be propagated via
scp
etc.) by executing:
R CMD INSTALL stringi_1.3.1.tar.gz
or by calling install.packages("stringi_1.3.1.tar.gz", repos=NULL)
,
from within an R session.
I'm trying to install a basic list of packages from
packrat
that also holdsstringi
. I'm using shiny server on RedHat The command I ran is below. I'm very new to working with shiny server so it's possible that it's a stupid mistake on my end. It looks like it could be something with ICU4C?packrat::unbundle("~acgrose/TestPackratApp-2018-07-30.tar.gz", "/opt/app/shinyapps")
Output:
I'm not really sure what to make of this. Is this a
packrat
problem or astringi
problem?