Cannot install notifier on Windows
Installation of notifier persistently fails for me on Windows. Aren't AppKit and ScriptingBridge Mac-only?
source("https://install-github.me/gaborcsardi/notifier")
#> Using github PAT from envvar GITHUB_PAT
#> Downloading GitHub repo gaborcsardi/notifier@master
#> Using github PAT from envvar GITHUB_PAT
#> Downloading GitHub repo r-pkgs/processx@master
#> Installing package into ‘C:/Users/dpprdan/Documents/R/win-library/3.4’
#> (as ‘lib’ is unspecified)
#> * installing *source* package 'processx' ...
#> ** libs
#> c:/Rtools/mingw_64/bin/gcc -O2 -Wall -std=gnu99 -mtune=generic -Wall tools/px.c -o tools/px.exe
#> c:/Rtools/mingw_64/bin/gcc -O2 -Wall -std=gnu99 -mtune=generic supervisor/supervisor.c supervisor/utils.c supervisor/windows.c -o supervisor/supervisor.exe
#> c:/Rtools/mingw_64/bin/g++ -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG -I"C:/Users/dpprdan/Documents/R/win-library/3.4/testthat/include" -O2 -Wall -mtune=generic -c test-connections.cpp -o test-connections.o
#> c:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG -I"C:/Users/dpprdan/Documents/R/win-library/3.4/testthat/include" -O2 -Wall -std=gnu99 -mtune=generic -c init.c -o init.o
#> c:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG -I"C:/Users/dpprdan/Documents/R/win-library/3.4/testthat/include" -O2 -Wall -std=gnu99 -mtune=generic -c poll.c -o poll.o
#> c:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG -I"C:/Users/dpprdan/Documents/R/win-library/3.4/testthat/include" -O2 -Wall -std=gnu99 -mtune=generic -c processx-connection.c -o processx-connection.o
#> c:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG -I"C:/Users/dpprdan/Documents/R/win-library/3.4/testthat/include" -O2 -Wall -std=gnu99 -mtune=generic -c processx-vector.c -o processx-vector.o
#> c:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG -I"C:/Users/dpprdan/Documents/R/win-library/3.4/testthat/include" -O2 -Wall -std=gnu99 -mtune=generic -c win/processx.c -o win/processx.o
#> c:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG -I"C:/Users/dpprdan/Documents/R/win-library/3.4/testthat/include" -O2 -Wall -std=gnu99 -mtune=generic -c win/stdio.c -o win/stdio.o
#> c:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG -I"C:/Users/dpprdan/Documents/R/win-library/3.4/testthat/include" -O2 -Wall -std=gnu99 -mtune=generic -c win/named_pipe.c -o win/named_pipe.o
#> c:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG -I"C:/Users/dpprdan/Documents/R/win-library/3.4/testthat/include" -O2 -Wall -std=gnu99 -mtune=generic -c win/cleanup.c -o win/cleanup.o
#> c:/Rtools/mingw_64/bin/g++ -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG -I"C:/Users/dpprdan/Documents/R/win-library/3.4/testthat/include" -O2 -Wall -mtune=generic -c test-runner.cpp -o test-runner.o
#> c:/Rtools/mingw_64/bin/g++ -shared -s -static-libgcc -o processx.dll tmp.def test-connections.o init.o poll.o processx-connection.o processx-vector.o win/processx.o win/stdio.o win/named_pipe.o win/cleanup.o test-runner.o -LC:/PROGRA~1/R/R-34~1.3/bin/x64 -lR
#> installing via 'install.libs.R' to C:/Users/dpprdan/Documents/R/win-library/3.4/processx
#> ** R
#> ** inst
#> ** preparing package for lazy loading
#> ** help
#> *** installing help indices
#> converting help for package 'processx'
#> finding HTML links ... fertig
#> poll html
#> process html
#> process_initialize html
#> run html
#> ** building package indices
#> ** testing if installed package can be loaded
#> * DONE (processx)
#> In R CMD INSTALL
#> Skipping 1 packages ahead of CRAN: processx
#> Installing package into ‘C:/Users/dpprdan/Documents/R/win-library/3.4’
#> (as ‘lib’ is unspecified)
#> * installing *source* package 'notifier' ...
#> ** libs
#> c:/Rtools/mingw_64/bin/gcc -O2 -Wall -std=gnu99 -mtune=generic main.m AppDelegate.m -o macnotifier \
#> -framework AppKit -framework ScriptingBridge
#> gcc.exe: error: AppKit: No such file or directory
#> gcc.exe: error: ScriptingBridge: No such file or directory
#> gcc.exe: error: unrecognized command line option '-framework'
#> gcc.exe: error: unrecognized command line option '-framework'
#> make: *** [macnotifier] Error 1
#> Warnung: Ausführung von Kommando 'make -f "Makevars" -f "C:/PROGRA~1/R/R-34~1.3/etc/x64/Makeconf" -f "C:/PROGRA~1/R/R-34~1.3/share/make/winshlib.mk" SHLIB="notifier.dll" SHLIB_LIBADD='$(OBJC_LIBS)' WIN=64 TCLBIN=64 ' ergab Status 2
#> ERROR: compilation failed for package 'notifier'
#> * removing 'C:/Users/dpprdan/Documents/R/win-library/3.4/notifier'
#> In R CMD INSTALL
#> Warning messages:
#> 1: running command '"C:/PROGRA~1/R/R-34~1.3/bin/x64/R" CMD INSTALL -l "C:\Users\dpprdan\Documents\R\win-library\3.4" "C:/Users/dpprdan/AppData/Local/Temp/RtmpctIsnq/remotes1ba41fe43316/gaborcsardi-notifier-2caaa92"' had status 1
#> 2: In utils::install.packages(...) :
#> installation of package ‘C:/Users/dpprdan/AppData/Local/Temp/RtmpctIsnq/remotes1ba41fe43316/gaborcsardi-notifier-2caaa92’ had non-zero exit status
Session info
devtools::session_info()
#> Session info -------------------------------------------------------------
#> setting value
#> version R version 3.4.3 (2017-11-30)
#> system x86_64, mingw32
#> ui RTerm
#> language (EN)
#> collate German_Germany.1252
#> tz Europe/Berlin
#> date 2018-01-03
#> Packages -----------------------------------------------------------------
#> package * version date source
#> assertthat 0.2.0 2017-04-11 CRAN (R 3.4.2)
#> backports 1.1.2 2017-12-13 CRAN (R 3.4.3)
#> base * 3.4.3 2017-12-06 local
#> compiler 3.4.3 2017-12-06 local
#> crayon 1.3.4 2017-10-19 Github (r-lib/crayon@b5221ab)
#> datasets * 3.4.3 2017-12-06 local
#> debugme 1.1.0 2017-10-22 CRAN (R 3.4.2)
#> devtools 1.13.4 2017-11-09 CRAN (R 3.4.2)
#> digest 0.6.13 2017-12-14 CRAN (R 3.4.3)
#> evaluate 0.10.1 2017-06-24 CRAN (R 3.4.0)
#> formatR 1.5 2017-04-25 CRAN (R 3.4.2)
#> graphics * 3.4.3 2017-12-06 local
#> grDevices * 3.4.3 2017-12-06 local
#> htmltools 0.3.6 2017-04-28 CRAN (R 3.4.0)
#> knitr 1.18 2017-12-27 CRAN (R 3.4.3)
#> magrittr 1.5 2014-11-22 CRAN (R 3.4.2)
#> memoise 1.1.0 2017-10-16 Github (hadley/memoise@d63ae9c)
#> methods * 3.4.3 2017-12-06 local
#> processx * 3.0.3 2018-01-03 Github (r-pkgs/processx@adac837)
#> R6 2.2.2 2017-06-17 CRAN (R 3.4.0)
#> Rcpp 0.12.14 2017-11-23 CRAN (R 3.4.2)
#> rmarkdown 1.8 2017-11-17 CRAN (R 3.4.2)
#> rprojroot 1.3-1 2017-12-18 CRAN (R 3.4.2)
#> stats * 3.4.3 2017-12-06 local
#> stringi 1.1.6 2017-11-17 CRAN (R 3.4.2)
#> stringr 1.2.0 2017-02-18 CRAN (R 3.4.2)
#> tools 3.4.3 2017-12-06 local
#> utils * 3.4.3 2017-12-06 local
#> withr 2.1.1 2017-12-19 CRAN (R 3.4.3)
#> yaml 2.1.16 2017-12-12 CRAN (R 3.4.3)
Please install the latest version from CRAN, before it was archived. E.g.
devtools::install_version("notifier")
Thanks, that works. Shall I leave this open?
(Just mentioning that the same error is true for Linux for me.)
Just an FYI: I'm seeing the same installation errors with R 3.5.3 on Ubuntu 18.04 using:
remotes::install_github("gaborcsardi/notifier")
I confirm that installing the version available in the CRAN archive works;
remotes::install_version("notifier")
It looks like commit d92b1b6 corresponds to notifier 1.0.0 that is in CRAN archive, which means that notifier 1.1.0 can also be installed as:
remotes::install_github("gaborcsardi/notifier@d92b1b6")
which in turn means you can specify it as a 'Remotes' in your DESCRIPTION file:
Remotes: gaborcsardi/notifier@d92b1b6
PS. @gaborcsardi, would you mind doing git tag 1.0.0 d92b1b6 and git push --tags?