

(Following these steps makes it easier for helpers to read what you post and keeps the forum software from garbling it.
#Window tidy problems code#
#Window tidy problems install#
Copy all the output from the console that was generated when you tried to install tidyverse (no screenshots please!).This will insert a small template with the words “type or paste code here” selected. In a new post here, on a blank line, click the little button at the top of the posting box.Rdata (may be hidden by your OS) in your default working directory and rename it before starting up R or RStudio. If you have R set up so that it is automatically restoring stuff from your last session, then find the file called. Launch fresh, and do not run any code or load any packages before installing. You can do this from RStudio or from RGui.exe, or even from the terminal - what matters most is that you do it in a clean session. Definitely delete that LOCK file, if you haven't already!.I'd vary a little bit from what recommended, and suggest the following: readr is one of the core tidyverse packages, so a successful tidyverse installation (even without dependencies = TRUE!) should have left you with a working installation of readr. R's package installation messages are unfortunately not written with the novice in mind, so it is common that people don't notice the important bits. However, looking at your first post, I suspect that something went wrong in your initial tidyverse installation attempt. In the screenshot, the problem is just a simple typo (you have install.packages(tidyverse) instead of install.packages("tidyverse"). Installation of package ‘readr’ had non-zero exit status Try removing 'C:/Users/Antony.LAPTOP/Documents/R/win-library/3.5/00LOCK-readr' ‘C:\Users\Antony.LAPTOP\AppData\Local\Temp\Rtmpm4urVj\downloaded_packages’Ĭontent type 'application/x-gzip' length 358690 bytes (350 KB)ĮRROR: failed to lock directory 'C:/Users/Antony.LAPTOP/Documents/R/win-library/3.5' for modifying

Installation of package ‘haven’ had non-zero exit status * removing 'C:/Users/Antony.LAPTOP/Documents/R/win-library/3.5/haven' There is a binary version available but the source version is later:Ĭontent type 'application/x-gzip' length 204563 bytes (199 KB)ĮRROR: dependency 'readr' is not available for package 'haven' Installing package into ‘C:/Users/Antony.LAPTOP/Documents/R/win-library/3.5’ Here's the code version: > library(tidyverse)Įrror: package or namespace load failed for ‘tidyverse’ in loadNamespace(j install.packages("haven") I was working away/learning some stuff now I'm losing whole chunks of a day by not being able to get the software to work.Ĭan anyone point me in the right direction? I'm pretty new at all this and it's v off-putting. It told me it needed Haven so I tried to install that, and then it told me I needed readr so I tried to install that but it wouldn't. Then I tried to open the tidyverse using: Install.packages("tidyverse", dependencies = TRUE ) I reinstalled RStudio then downloaded tidyverse with this:

Looks like the dependency issue that it looks like a lot of people have.
