Pregunta

cuando ejecuto lo siguiente:

library(devtools)
install_github('roxygen2')

Obtuve el siguiente error:

con herramientas de desarrollo 0.51:

Installing roxygen2 from hadley
Error in unzip(src, list = TRUE) : 
  zip file '/tmp/Rtmp2b44Ug/hadley-roxygen2.zip' cannot be opened

Instalé una versión más reciente (0.6) de devtools: install_github('devtools')

y el error es más informativo, pero similar:

> install_github('roxygen')
Installing github repo(s) roxygen/master from hadley
Installing roxygen.zip from https://github.com/hadley/roxygen/zipball
Error in expand(src, list = TRUE) : 
  zip file '/tmp/Rtmp2b44Ug/roxygen.zip' cannot be opened
In addition: Warning message:
In expand(src, exdir = tempdir()) : error 1 in extracting from zip file

¿Estoy haciendo algo mal?


> sessionInfo()
R version 2.14.1 (2011-12-22)
Platform: x86_64-pc-linux-gnu (64-bit)
... 
¿Fue útil?

Solución

Este error ocurre porque la función install_github conjuntos username='hadley' por defecto (ver fuente install-github.r)

En este caso, no hay una rama de github. hadley/roxygen, y ahora descargar desde https://github.com/hadley/roxygen/zipball/master

Esto funcionará:

install_github('roxygen',username = 'klutometis')

nota: aunque el paquete se llama roxygen2, el nombre del "repo" es "roxygen"

Abrí un error en herramientas de desarrollo

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top