Closed Cattiva closed 2 years ago
Same here. Just un- and reinstalled R, RStudio and Rtools and still having the same issue.
install.packages("websocket")
#> Installing package into 'C:/Users/schmi/Documents/R/win-library/4.1'
#> (as 'lib' is unspecified)
#> Error in if (any(diff)) {: missing value where TRUE/FALSE needed
devtools::install_github("rstudio/websocket")
#> Downloading GitHub repo rstudio/websocket@HEAD
#>
#> checking for file 'C:\Users\schmi\AppData\Local\Temp\RtmpkzMuKS\remotesf503f97558a\rstudio-websocket-2161ee7/DESCRIPTION' ... checking for file 'C:\Users\schmi\AppData\Local\Temp\RtmpkzMuKS\remotesf503f97558a\rstudio-websocket-2161ee7/DESCRIPTION' ... v checking for file 'C:\Users\schmi\AppData\Local\Temp\RtmpkzMuKS\remotesf503f97558a\rstudio-websocket-2161ee7/DESCRIPTION'
#> - preparing 'websocket':
#> checking DESCRIPTION meta-information ... checking DESCRIPTION meta-information ... v checking DESCRIPTION meta-information
#> - cleaning src
#> - checking for LF line-endings in source and make files and shell scripts
#> - checking for empty or unneeded directories
#> - building 'websocket_1.4.1.9000.tar.gz'
#> Warning: Warning: file 'websocket/cleanup' did not have execute permissions: corrected
#> Warning: file 'websocket/configure' did not have execute permissions: corrected
#>
#>
#> Installing package into 'C:/Users/schmi/Documents/R/win-library/4.1'
#> (as 'lib' is unspecified)
#> Warning in i.p(...): installation of package 'C:/Users/schmi/AppData/Local/Temp/
#> RtmpkzMuKS/filef50433d20f5/websocket_1.4.1.9000.tar.gz' had non-zero exit status
Created on 2021-11-29 by the reprex package (v2.0.1)
Out of desperation, I even tried installing via the websocket_1.4.1.tar.gz
from CRAN:
* installing *source* package 'websocket' ...
** package 'websocket' successfully unpacked and MD5 sums checked
** using staged installation
**********************************************
WARNING: this package has a configure script
It probably needs manual configuration
**********************************************
** libs
*** arch - i386
"C:/PROGRA~1/R/R-4.1.2/bin/i386/Rscript.exe" "../tools/winlibs.R" 1.1.1g
"C:/rtools40/mingw32/bin/"g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-4.1.2/include" -DNDEBUG -I./lib -I../windows/openssl-1.1.1g/include -D_WEBSOCKETPP_CPP11_THREAD_ -I'C:/Users/schmi/Documents/R/win-library/4.1/cpp11/include' -I'C:/Users/schmi/Documents/R/win-library/4.1/AsioHeaders/include' -I'C:/Users/schmi/Documents/R/win-library/4.1/later/include' -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c cpp11.cpp -o cpp11.o
"C:/rtools40/mingw32/bin/"g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-4.1.2/include" -DNDEBUG -I./lib -I../windows/openssl-1.1.1g/include -D_WEBSOCKETPP_CPP11_THREAD_ -I'C:/Users/schmi/Documents/R/win-library/4.1/cpp11/include' -I'C:/Users/schmi/Documents/R/win-library/4.1/AsioHeaders/include' -I'C:/Users/schmi/Documents/R/win-library/4.1/later/include' -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c debug.cpp -o debug.o
"C:/rtools40/mingw32/bin/"g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-4.1.2/include" -DNDEBUG -I./lib -I../windows/openssl-1.1.1g/include -D_WEBSOCKETPP_CPP11_THREAD_ -I'C:/Users/schmi/Documents/R/win-library/4.1/cpp11/include' -I'C:/Users/schmi/Documents/R/win-library/4.1/AsioHeaders/include' -I'C:/Users/schmi/Documents/R/win-library/4.1/later/include' -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c websocket.cpp -o websocket.o
"C:/rtools40/mingw32/bin/"g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-4.1.2/include" -DNDEBUG -I./lib -I../windows/openssl-1.1.1g/include -D_WEBSOCKETPP_CPP11_THREAD_ -I'C:/Users/schmi/Documents/R/win-library/4.1/cpp11/include' -I'C:/Users/schmi/Documents/R/win-library/4.1/AsioHeaders/include' -I'C:/Users/schmi/Documents/R/win-library/4.1/later/include' -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c websocket_connection.cpp -o websocket_connection.o
websocket_connection.cpp: In function 'cpp11::raws to_raw(std::__cxx11::string)':
websocket_connection.cpp:37:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
for(int i=0; i<input.size(); i++) {
~^~~~~~~~~~~~~
"C:/rtools40/mingw32/bin/"g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-4.1.2/include" -DNDEBUG -I./lib -I../windows/openssl-1.1.1g/include -D_WEBSOCKETPP_CPP11_THREAD_ -I'C:/Users/schmi/Documents/R/win-library/4.1/cpp11/include' -I'C:/Users/schmi/Documents/R/win-library/4.1/AsioHeaders/include' -I'C:/Users/schmi/Documents/R/win-library/4.1/later/include' -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c websocket_task.cpp -o websocket_task.o
C:/rtools40/mingw32/bin/g++ -shared -s -static-libgcc -o websocket.dll tmp.def cpp11.o debug.o websocket.o websocket_connection.o websocket_task.o -L../windows/openssl-1.1.1g/lib/i386 -lssl -lcrypto -lz -lws2_32 -lgdi32 -lcrypt32 -LC:/PROGRA~1/R/R-4.1.2/bin/i386 -lR
installing to C:/Users/schmi/Documents/R/win-library/4.1/00LOCK-websocket/00new/websocket/libs/i386
*** arch - x64
"C:/PROGRA~1/R/R-4.1.2/bin/x64/Rscript.exe" "../tools/winlibs.R" 1.1.1g
"C:/rtools40/mingw64/bin/"g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-4.1.2/include" -DNDEBUG -I./lib -I../windows/openssl-1.1.1g/include -D_WEBSOCKETPP_CPP11_THREAD_ -I'C:/Users/schmi/Documents/R/win-library/4.1/cpp11/include' -I'C:/Users/schmi/Documents/R/win-library/4.1/AsioHeaders/include' -I'C:/Users/schmi/Documents/R/win-library/4.1/later/include' -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c cpp11.cpp -o cpp11.o
"C:/rtools40/mingw64/bin/"g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-4.1.2/include" -DNDEBUG -I./lib -I../windows/openssl-1.1.1g/include -D_WEBSOCKETPP_CPP11_THREAD_ -I'C:/Users/schmi/Documents/R/win-library/4.1/cpp11/include' -I'C:/Users/schmi/Documents/R/win-library/4.1/AsioHeaders/include' -I'C:/Users/schmi/Documents/R/win-library/4.1/later/include' -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c debug.cpp -o debug.o
"C:/rtools40/mingw64/bin/"g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-4.1.2/include" -DNDEBUG -I./lib -I../windows/openssl-1.1.1g/include -D_WEBSOCKETPP_CPP11_THREAD_ -I'C:/Users/schmi/Documents/R/win-library/4.1/cpp11/include' -I'C:/Users/schmi/Documents/R/win-library/4.1/AsioHeaders/include' -I'C:/Users/schmi/Documents/R/win-library/4.1/later/include' -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c websocket.cpp -o websocket.o
"C:/rtools40/mingw64/bin/"g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-4.1.2/include" -DNDEBUG -I./lib -I../windows/openssl-1.1.1g/include -D_WEBSOCKETPP_CPP11_THREAD_ -I'C:/Users/schmi/Documents/R/win-library/4.1/cpp11/include' -I'C:/Users/schmi/Documents/R/win-library/4.1/AsioHeaders/include' -I'C:/Users/schmi/Documents/R/win-library/4.1/later/include' -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c websocket_connection.cpp -o websocket_connection.o
websocket_connection.cpp: In function 'cpp11::raws to_raw(std::__cxx11::string)':
websocket_connection.cpp:37:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long long unsigned int'} [-Wsign-compare]
for(int i=0; i<input.size(); i++) {
~^~~~~~~~~~~~~
"C:/rtools40/mingw64/bin/"g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-4.1.2/include" -DNDEBUG -I./lib -I../windows/openssl-1.1.1g/include -D_WEBSOCKETPP_CPP11_THREAD_ -I'C:/Users/schmi/Documents/R/win-library/4.1/cpp11/include' -I'C:/Users/schmi/Documents/R/win-library/4.1/AsioHeaders/include' -I'C:/Users/schmi/Documents/R/win-library/4.1/later/include' -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c websocket_task.cpp -o websocket_task.o
C:/rtools40/mingw64/bin/g++ -shared -s -static-libgcc -o websocket.dll tmp.def cpp11.o debug.o websocket.o websocket_connection.o websocket_task.o -L../windows/openssl-1.1.1g/lib/x64 -lssl -lcrypto -lz -lws2_32 -lgdi32 -lcrypt32 -LC:/PROGRA~1/R/R-4.1.2/bin/x64 -lR
no DLL was created
ERROR: compilation failed for package 'websocket'
* removing 'C:/Users/schmi/Documents/R/win-library/4.1/websocket'
Warning in install.packages :
installation of package ‘C:/Users/schmi/Downloads/websocket_1.4.1.tar.gz’ had non-zero exit status
Session Info:
devtools::session_info()
#> - Session info --------------------------------------------------------------
#> hash: sparkle, check mark, full moon
#>
#> setting value
#> version R version 4.1.2 (2021-11-01)
#> os Windows 10 x64 (build 19042)
#> system x86_64, mingw32
#> ui RTerm
#> language en
#> collate German_Germany.1252
#> ctype German_Germany.1252
#> tz Europe/Berlin
#> date 2021-11-29
#> pandoc 2.14.0.3 @ C:/Program Files/RStudio/bin/pandoc/ (via rmarkdown)
#>
#> - Packages -------------------------------------------------------------------
#> package * version date (UTC) lib source
#> backports 1.4.0 2021-11-23 [1] CRAN (R 4.1.2)
#> cachem 1.0.6 2021-08-19 [1] CRAN (R 4.1.2)
#> callr 3.7.0 2021-04-20 [1] CRAN (R 4.1.0)
#> cli 3.1.0 2021-10-27 [1] CRAN (R 4.1.2)
#> crayon 1.4.2 2021-10-29 [1] CRAN (R 4.1.2)
#> desc 1.4.0 2021-09-28 [1] CRAN (R 4.1.2)
#> devtools 2.4.2 2021-06-07 [1] CRAN (R 4.1.0)
#> digest 0.6.28 2021-09-23 [1] CRAN (R 4.1.2)
#> ellipsis 0.3.2 2021-04-29 [1] CRAN (R 4.1.0)
#> evaluate 0.14 2019-05-28 [1] CRAN (R 4.1.0)
#> fansi 0.5.0 2021-05-25 [1] CRAN (R 4.1.0)
#> fastmap 1.1.0 2021-01-25 [1] CRAN (R 4.1.0)
#> fs 1.5.0 2020-07-31 [1] CRAN (R 4.1.0)
#> glue 1.5.0 2021-11-07 [1] CRAN (R 4.1.2)
#> highr 0.9 2021-04-16 [1] CRAN (R 4.1.0)
#> htmltools 0.5.2 2021-08-25 [1] CRAN (R 4.1.2)
#> knitr 1.36 2021-09-29 [1] CRAN (R 4.1.2)
#> lifecycle 1.0.1 2021-09-24 [1] CRAN (R 4.1.2)
#> magrittr 2.0.1 2020-11-17 [1] CRAN (R 4.1.0)
#> memoise 2.0.1 2021-11-26 [1] CRAN (R 4.1.2)
#> pillar 1.6.4 2021-10-18 [1] CRAN (R 4.1.2)
#> pkgbuild 1.2.0 2020-12-15 [1] CRAN (R 4.1.0)
#> pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 4.1.0)
#> pkgload 1.2.3 2021-10-13 [1] CRAN (R 4.1.2)
#> prettyunits 1.1.1 2020-01-24 [1] CRAN (R 4.1.0)
#> processx 3.5.2 2021-04-30 [1] CRAN (R 4.1.0)
#> ps 1.6.0 2021-02-28 [1] CRAN (R 4.1.0)
#> purrr 0.3.4 2020-04-17 [1] CRAN (R 4.1.0)
#> R.cache 0.15.0 2021-04-30 [1] CRAN (R 4.1.2)
#> R.methodsS3 1.8.1 2020-08-26 [1] CRAN (R 4.1.1)
#> R.oo 1.24.0 2020-08-26 [1] CRAN (R 4.1.1)
#> R.utils 2.11.0 2021-09-26 [1] CRAN (R 4.1.2)
#> R6 2.5.1 2021-08-19 [1] CRAN (R 4.1.2)
#> remotes 2.4.1 2021-09-29 [1] CRAN (R 4.1.2)
#> reprex 2.0.1 2021-08-05 [1] CRAN (R 4.1.2)
#> rlang 0.4.12 2021-10-18 [1] CRAN (R 4.1.2)
#> rmarkdown 2.11 2021-09-14 [1] CRAN (R 4.1.2)
#> rprojroot 2.0.2 2020-11-15 [1] CRAN (R 4.1.0)
#> rstudioapi 0.13 2020-11-12 [1] CRAN (R 4.1.0)
#> sessioninfo 1.2.1 2021-11-02 [1] CRAN (R 4.1.2)
#> stringi 1.7.6 2021-11-29 [1] CRAN (R 4.1.2)
#> stringr 1.4.0 2019-02-10 [1] CRAN (R 4.1.0)
#> styler 1.6.2 2021-09-23 [1] CRAN (R 4.1.2)
#> testthat 3.1.0 2021-10-04 [1] CRAN (R 4.1.2)
#> tibble 3.1.6 2021-11-07 [1] CRAN (R 4.1.2)
#> usethis 2.1.3 2021-10-27 [1] CRAN (R 4.1.2)
#> utf8 1.2.2 2021-07-24 [1] CRAN (R 4.1.2)
#> vctrs 0.3.8 2021-04-29 [1] CRAN (R 4.1.0)
#> withr 2.4.2 2021-04-18 [1] CRAN (R 4.1.0)
#> xfun 0.28 2021-11-04 [1] CRAN (R 4.1.2)
#> yaml 2.2.1 2020-02-01 [1] CRAN (R 4.1.0)
#>
#> [1] C:/Users/schmi/Documents/R/win-library/4.1
#> [2] C:/Program Files/R/R-4.1.2/library
#>
#> ------------------------------------------------------------------------------
@SchmidtPaul Are you using Rtools 40v2? Via: https://cran.r-project.org/bin/windows/Rtools/
I wish sessioninfo::session_info()
displayed the Rtools version...
@schloerke Yes, just before posting I even reinstalled Rtools40v2 (=Rtools 4.0.1.0) via: https://cran.r-project.org/bin/windows/Rtools/ (I just found out that I am not facing this issue on my other PC, where I am using Rtools 4.0.0.28)
Good news: We are able to reprex a freeze when compiling the x64 build using Rtools 40v2 Bad news: Compilers on Windows
Very odd that it worked for Rtools 40 (v1) and not for 40v2.
The installation in the first post here fails because:
Warnung in file.copy(files, dest, overwrite = TRUE)
Problem .\websocket.dll nach C:\Users\alexa\Documents\R\win-library\4.1\00LOCK-websocket\00new\websocket\libs\x64\websocket.dll zu kopieren: Invalid argument
This means the DLL is in use and can not be replaced. It is probably fixed if you quit all r sessions and try again (possibly restart your computer if there is a background process stuck).
I think it is very unlikely this has anything to do with the version of rtools40 (there were no related changes between v1 and v2). The installation works fine for me.
Thanks @jeroen, it seemed that a background process and the antivirus used (Avast) both blocked the installation.
After deactivating the antivirus software and running install.packages from a fresh admin cmd did the job.
I just want to confirm that deactivating Avast before installing the package also solved the issue for me.
Hi all,
the installation fails on my Win10 machine even after complete reinstallation of R / RStudio.
Also installing from github fails, but gives a little more detail that there might be a problem creating the websocket DLL:
Could you please check what is causing this error?
Happy to provide further details if needed.
Many thanks in advance Alex