Error en la instalación de paquetes en R

Hola a todos, estoy haciendo una replicación de un articulo y me encuentro con lo siguiente:

setwd("C:/Filr/Meine Dateien/Paper Belgium Federalism/Auswertung")

path <- "C:/Filr/Meine Dateien/Paper Belgium Federalism/Daten"


a lo que resulta:

Error in install.packages : ERROR: failed to lock directory ‘C:\Users\Soledad\Documents\R\win-library\3.6’ for modifying
Try removing ‘C:\Users\Soledad\Documents\R\win-library\3.6/00LOCK’

Gracias por la ayuda.

Hi Soledad, welcome!

To solve this issue you just have to follow the recommendation in the error message

You just have to delete that file.

Also, I recommend you to not execute these lines of code since they make reference to folders that only exist in the author's computer and not in yours thus they are going to produce errors.

As a side note, please try to make your questions in English since it is the preferred language here and by using Spanish you are excluding most people from the conversation.

Hola Soledad, bienvenida!

Para resolver este problema, solo tienes que seguir las recomendaciones del mensaje de error.

Solo tienes que eliminar ese archivo.

Además, te recomiendo que no ejecute estas líneas de código, ya que hacen referencia a carpetas que solo existen en la computadora del autor y no en la suya, por lo que producirán errores.

Como nota al margen, intenta hacer sus preguntas en inglés, ya que es el idioma preferido aquí y al usar español excluyes a la mayoría de las personas de la conversación.


Thanks !!! The next time will write in english

It worked but now when trying to install the Synth package -among others-, everything goes wrong.

package ‘kernlab’ successfully unpacked and MD5 sums checked
Error in install.packages : ERROR: failed to lock directory ‘C:\Users\Soledad\Documents\R\win-library\3.6’ for modifying
Try removing ‘C:\Users\Soledad\Documents\R\win-library\3.6/00LOCK’

Sorry, I'm new trying to replicate files in R. Any help is welcome, thanks.

This is the exact same problem have you already deleted the file?
This seems like a permissions issue, try running RStudio as administrator.

Yes, the problem persists.
I will try as administrator.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.