ecohealthalliance / open-rvfcast

Wellcome Open RVFCast project repository
Other
0 stars 2 forks source link

Debug renv package install errors #49

Closed emmamendelsohn closed 1 year ago

emmamendelsohn commented 1 year ago

From Harold -- fix might be to switch to RSPM for windows


# Installing packages --------------------------------------------------------

- Installing vctrs ...                          FAILED

Error: Error installing package 'vctrs':

=================================

* installing *source* package 'vctrs' ...

** package 'vctrs' successfully unpacked and MD5 sums checked

** using staged installation

** libs

gcc  -I"C:/PROGRA~1/R/R-42~1.2/include" -DNDEBUG -I./rlang    -I"c:/rtools42/x86_64-w64-mingw32.static.posix/include"     -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign  -c altrep-rle.c -o altrep-rle.o

sh: line 1: gcc: command not found

make: *** [C:/PROGRA~1/R/R-42~1.2/etc/x64/Makeconf:253: altrep-rle.o] Error 127

ERROR: compilation failed for package 'vctrs'

* removing 'C:/work/RVF-EWS-main/renv/library/R-4.2/x86_64-w64-mingw32/vctrs'

install of package 'vctrs' failed [error code 1]

Traceback (most recent calls last):

12: renv::restore()

11: renv_restore_run_actions(project, diff, current, lockfile, rebuild)

10: renv_install_impl(records)

9: renv_install_default(records)

8: handler(package, renv_install_package(record))

7: renv_install_package(record)

6: withCallingHandlers(renv_install_package_impl(record), error = function(e) writef("FAILED"))

5: renv_install_package_impl(record)

4: r_cmd_install(package, path)

3: r_exec_error(package, output, "install", status)

2: abort(all)

1: stop(fallback)

Execution halted