Comments (6)
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.
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.
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.
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.
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.
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)
- Document common options for output encoding of Windows tools HOT 2
- User-defined process name HOT 2
- Different behaviour inside and outside functions HOT 5
- `$call` should be a call or `NULL` in error objects HOT 3
- Release processx 3.8.1
- Release processx 3.9.0 HOT 1
- get_pid() different from Sys.getpid() on Windows HOT 2
- Compiler error during install: -fPIE HOT 7
- Unnable to read more than 78643 chars from stdout pipe HOT 3
- Release processx 3.8.2
- arguments with special character like \'~\' case an error. HOT 2
- Process hangs when using pipes with `stdout`, `stderr` for `latexmk -pdf` compilation HOT 2
- Move httpbin to test-poll-curl.R? HOT 2
- Upkeep for processx (2022)
- Use cli errors or file an issue if you don't have time to do it now
- `usethis::use_standalone("r-lib/rlang", "types-check")` instead of home grown argument checkers;
- Add alt-text to pictures, plots, etc; see https://posit.co/blog/knitr-fig-alt/ for examples
- processx update from CRAN HOT 3
- Release processx 3.8.3 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from processx.