Code Monkey home page Code Monkey logo

Comments (6)

guivivi avatar guivivi commented on September 5, 2024 1

By running mv ~/.R/Makevars ~/.R/Makevars.bak in the terminal, indeed I have been able to install processx, then callr and finally to update my shiny app in the server.
Many thanks for your help.

from processx.

gaborcsardi avatar gaborcsardi commented on September 5, 2024

That does not seem like an error with processx, but a broken or misconfigured R installation or system, possibly. Can you compile other packages from source?

In any case, it seems to work fine OOTB on Fedora 30 (unsupported for more than 3 years now, btw.), with the same R version. Example Dockerfile:

FROM fedora:30
RUN yum install -y R
RUN R -q -e 'install.packages("ps", repos = "https://cloud.r-project.org")'
RUN R -q -e 'install.packages("processx", repos = "https://cloud.r-project.org")'
RUN R -q -e 'processx::run("true")'
docker build -t fedora:processx .
docker run fedora:processx R -q -e 'processx::run("true")'
> processx::run("true")
$status
[1] 0

$stdout
[1] ""

$stderr
[1] ""

$timeout
[1] FALSE

from processx.

guivivi avatar guivivi commented on September 5, 2024

Many thanks for the quick response. I have tried for example to install the stringi package from the source and it was successfully installed. I just ran the following:

> install.packages("stringi_1.8.2.tar.gz", repos = NULL, type = "source")

However, I tried the following both without success (the same error that I indicated in the first message appears):

install.packages("processx_3.8.2.tar.gz", repos = NULL, type = "source")
install.packages("processx", repos = "https://cloud.r-project.org")

Would you have any insight about that possible R misconfiguration?

from processx.

gaborcsardi avatar gaborcsardi commented on September 5, 2024

I don't have a lot of ideas, unfortunately. Do you have an ~/.R/Makevars file? If yes, then try it without that file.

from processx.

guivivi avatar guivivi commented on September 5, 2024

Yes, I have it. This is its content:

# Settings from /etc/R/Makeconf with "non-portable flag(s):"
# ‘-Wdate-time’ ‘-Werror=format-security’ ‘-Wformat’ replaced by -Wall -pedantic
# and without -fdebug-prefix-map=... 
CFLAGS = -g -O2 -Wall -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2 $(LTO)
CXXFLAGS = -g -O2 -Wall -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2 $(LTO)
CXX98FLAGS = -g -O2 -Wall -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2
CXX11FLAGS = -g -O2 -Wall -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2
CXX14FLAGS = -g -O2 -Wall -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2

How can I try without that file? Do I have to remove it?

from processx.

gaborcsardi avatar gaborcsardi commented on September 5, 2024

It seems harmless, so I don't think this is the problem, but it is worth a try:

mv ~/.R/Makevars ~/.R/Makevars.bak

You can move it back later if you want to:

mv ~/.R/Makevars.bak ~/.R/Makevars

from processx.

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.