Subject: Help required for installing the package callr: I can't solve the dependency
Hi,
I'm a relatively Newbie in using R-Studio, especially reageding to handle the problematic questions. So I appreciate your help and your suggestions - many thanks in advance.
My problem is to understand what's the best way to react onto the installing error below.
That's I want to do
I want to execute
install.packages("callr")
Installing the Package callr from CRAN requires the package processx 3.4.0 as a dependency.
But it seems it's only available for my OS Windows10 as an uncompiled version.
Consequence:
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace 'processx' 3.3.1 is being loaded, but >= 3.4.0 is required
ERROR: lazy loading failed for package 'callr'
removing 'E:/R/R-3.5.1/library/callr'
That's I don't understand
I don't know what's the best way to solve the dependency.
and the dependency of installing the package pkginfo is a runing version of the package callr.
That happened during install process of the package callr
> install.packages("callr")
also installing the dependency ‘processx’
There are binary versions available but the source versions are later:
binary source needs_compilation
processx 3.3.1 3.4.0 TRUE
callr 3.2.0 3.3.0 FALSE
Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/processx_3.3.1.zip'
Content type 'application/zip' length 318959 bytes (311 KB)
downloaded 311 KB
package ‘processx’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\squeezer44\AppData\Local\Temp\Rtmpm2Hf31\downloaded_packages
installing the source package ‘callr’
trying URL 'https://cran.rstudio.com/src/contrib/callr_3.3.0.tar.gz'
Content type 'application/x-gzip' length 93115 bytes (90 KB)
downloaded 90 KB
* installing *source* package 'callr' ...
** package 'callr' successfully unpacked and MD5 sums checked
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace 'processx' 3.3.1 is being loaded, but >= 3.4.0 is required
ERROR: lazy loading failed for package 'callr'
* removing 'E:/R/R-3.5.1/library/callr'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘callr’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\squeezer44\AppData\Local\Temp\Rtmpm2Hf31\downloaded_packages’
Then your only choice is to install the source version, since you are on Windows make sure you have Rtools installed for being able to compile the package. https://cran.r-project.org/bin/windows/Rtools/
install.packages(c("processx", "callr"), type = "source")
RStudio did the rest
trying URL 'https://cran.rstudio.com/src/contrib/processx_3.4.0.tar.gz'
Content type 'application/x-gzip' length 123490 bytes (120 KB)
downloaded 120 KB
trying URL 'https://cran.rstudio.com/src/contrib/callr_3.3.0.tar.gz'
Content type 'application/x-gzip' length 93115 bytes (90 KB)
downloaded 90 KB
* installing *source* package 'processx' ...
** package 'processx' successfully unpacked and MD5 sums checked
** libs
E:/R/Rtools/mingw_64/bin/gcc -O2 -Wall -std=gnu99 -mtune=generic -Wall tools/px.c -o tools/px.exe
E:/R/Rtools/mingw_64/bin/gcc -O2 -Wall -std=gnu99 -mtune=generic -Wall tools/interrupt.c -o tools/interrupt.exe
E:/R/Rtools/mingw_64/bin/gcc -O2 -Wall -std=gnu99 -mtune=generic supervisor/supervisor.c supervisor/utils.c supervisor/windows.c -o supervisor/supervisor.exe
E:/R/Rtools/mingw_64/bin/gcc -I"E:/R/R-3.5.1/include" -DNDEBUG -DSTRICT_R_HEADERS -O2 -Wall -std=gnu99 -mtune=generic -c init.c -o init.o
E:/R/Rtools/mingw_64/bin/gcc -I"E:/R/R-3.5.1/include" -DNDEBUG -DSTRICT_R_HEADERS -O2 -Wall -std=gnu99 -mtune=generic -c poll.c -o poll.o
E:/R/Rtools/mingw_64/bin/gcc -I"E:/R/R-3.5.1/include" -DNDEBUG -DSTRICT_R_HEADERS -O2 -Wall -std=gnu99 -mtune=generic -c errors.c -o errors.o
E:/R/Rtools/mingw_64/bin/gcc -I"E:/R/R-3.5.1/include" -DNDEBUG -DSTRICT_R_HEADERS -O2 -Wall -std=gnu99 -mtune=generic -c processx-connection.c -o processx-connection.o
E:/R/Rtools/mingw_64/bin/gcc -I"E:/R/R-3.5.1/include" -DNDEBUG -DSTRICT_R_HEADERS -O2 -Wall -std=gnu99 -mtune=generic -c processx-vector.c -o processx-vector.o
E:/R/Rtools/mingw_64/bin/gcc -I"E:/R/R-3.5.1/include" -DNDEBUG -DSTRICT_R_HEADERS -O2 -Wall -std=gnu99 -mtune=generic -c create-time.c -o create-time.o
E:/R/Rtools/mingw_64/bin/gcc -I"E:/R/R-3.5.1/include" -DNDEBUG -DSTRICT_R_HEADERS -O2 -Wall -std=gnu99 -mtune=generic -c base64.c -o base64.o
E:/R/Rtools/mingw_64/bin/gcc -I"E:/R/R-3.5.1/include" -DNDEBUG -DSTRICT_R_HEADERS -O2 -Wall -std=gnu99 -mtune=generic -c win/processx.c -o win/processx.o
E:/R/Rtools/mingw_64/bin/gcc -I"E:/R/R-3.5.1/include" -DNDEBUG -DSTRICT_R_HEADERS -O2 -Wall -std=gnu99 -mtune=generic -c win/stdio.c -o win/stdio.o
E:/R/Rtools/mingw_64/bin/gcc -I"E:/R/R-3.5.1/include" -DNDEBUG -DSTRICT_R_HEADERS -O2 -Wall -std=gnu99 -mtune=generic -c win/named_pipe.c -o win/named_pipe.o
E:/R/Rtools/mingw_64/bin/gcc -I"E:/R/R-3.5.1/include" -DNDEBUG -DSTRICT_R_HEADERS -O2 -Wall -std=gnu99 -mtune=generic -c win/utils.c -o win/utils.o
E:/R/Rtools/mingw_64/bin/gcc -I"E:/R/R-3.5.1/include" -DNDEBUG -DSTRICT_R_HEADERS -O2 -Wall -std=gnu99 -mtune=generic -c win/thread.c -o win/thread.o
win/thread.c: In function 'processx__thread_getstatus_select':
win/thread.c:233:7: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
int ret;
^
E:/R/Rtools/mingw_64/bin/gcc -shared -s -static-libgcc -o processx.dll tmp.def init.o poll.o errors.o processx-connection.o processx-vector.o create-time.o base64.o win/processx.o win/stdio.o win/named_pipe.o win/utils.o win/thread.o -lws2_32 -LE:/R/R-3.5.1/bin/x64 -lR
E:/R/Rtools/mingw_64/bin/gcc -I"E:/R/R-3.5.1/include" -DNDEBUG -DSTRICT_R_HEADERS -O2 -Wall -std=gnu99 -mtune=generic -c client.c -o client.o
E:/R/Rtools/mingw_64/bin/gcc -Wl,--export-all-symbols -shared -o client.dll base64.o client.o errors.o -L"E:/R/R-3.5.1/bin/x64" -lR
installing via 'install.libs.R' to E:/R/R-3.5.1/library/processx
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
converting help for package 'processx'
finding HTML links ... done
base64_decode html
curl_fds html
Rd warning: C:/Users/squeezer44/AppData/Local/Temp/Rtmp8OR69N/R.INSTALL1e3874591668/processx/man/curl_fds.Rd:11: file link 'multi_fdset' in package 'curl' does not exist and so has been treated as a topic
default_pty_options html
poll html
process html
process_initialize html
processx_connections html
run html
** building package indices
** testing if installed package can be loaded
* DONE (processx)
Making 'packages.html' ... done
In R CMD INSTALL
* installing *source* package 'callr' ...
** package 'callr' successfully unpacked and MD5 sums checked
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
converting help for package 'callr'
finding HTML links ... done
callr html
convert_and_check_my_args html
default_repos html
get_result html
new_callr_error html
r html
Rd warning: C:/Users/squeezer44/AppData/Local/Temp/RtmpKKxEc5/R.INSTALL49c8606c7c7/callr/man/r.Rd:146: file link 'dump.frames' in package 'utils' does not exist and so has been treated as a topic
r_bg html
r_copycat html
r_process html
r_process_options html
r_session html
r_session_options html
r_vanilla html
rcmd html
rcmd_bg html
rcmd_copycat html
rcmd_process html
rcmd_process_options html
rcmd_safe html
reexports html
rscript html
rscript_process html
rscript_process_options html
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (callr)
Making 'packages.html' ... done
In R CMD INSTALL