When installing Rtools version 4.2 on Windows 10, I get a pop-up window with the following message at the end of the installation process:
Unable to execute file:
C:\WINDOWS\system32\cmd.exe
CreateProcess failed;code 2.
The system cannot find the file specified.
The only thing I have done previously is to install R (version 4.2.1.).
I fear ignoring this message will lead to issues later on.
I had a functioning RStudio until it required updates. It no longer stored memory. After updates, I am still unable to use R Studio with Apple Silicon (M1 laptop). I am having trouble with basic functions like setwd().
My current version is: R version 4.2.0 (2022-04-22)
I followed the directions provided from RStudio:
Installed R: R 4.2.0 binary for macOS 11 (Big Sur) and higher, Apple silicon arm64 build, signed and notarized package.
Reinstalled XQuartz after downloading R
Restarted my laptop
Installed RStudio Desktop 2022.02.3+492 provided on website
I can tell there are issues because I cannot set a working directory to file on my desktop. For example:
> # Set working directory
> setwd("/Users/name/Desktop/file")
> getwd()
[1] "/Users/name"
Setting the working directory by Session > Set Working Directory > To Source File Location is not working either.
Should I download an older version? How have others remediated this?
I am using windows 10 platform, now I installed R 3.3.3 console application then installed Rstudio 1.0.44
When i open the studio one popup when will raising automatically like
I changed the permission of RStudio-Desktop folder but still, it shows an error? could you please help me?
I installed Xcode on my Mac, running on the El Capitan version 10.11. I need to get files from a github repository to my workspace in R, so I run the line:
devtools::install_github("Myrepository")
And this error appears:
Downloading GitHub repo Myrepository
from URL https://api.github.com/repos/Myrepository/func/zipball/master
Erreur : Could not find build tools necessary to build func
I thought the problem may come from my gcc command line tools, but when I hit
gcc -v
I have it installed:
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin15.3.0
Thread model: posix
Any ideas?
I had the same problem when installing the forecast package from GitHub on my Mac running El Capitan. The suggested readline fix above did not work for me. I noticed that my shell wasn't seeing R (e.g. when I typed R at a shell prompt it said command not found). I also was operating as a non-admin user of my computer and I think had installed R as a non-admin user. So I downloaded R again (same version) and installed it as an admin user. (This was based on a hunch after reading about some of the finnicky issues with R and paths in El Cap) After reinstalling R as an admin user I could then open R in a terminal, and at that point
devtools::install_github("robjhyndman/forecast")
worked fine.
I work with RStudio (version 3.1.2). When I try to Knit PDF in my R Markdown script, I receive the following output:
Error in eval(expr,envir,enclos): object 'pdflatex' not found
I have installed MikTex basic and have searched solutions on the web. There is one in stackoverflow for Mac users, I work with Windows 7. It seems the problem is not having a path to the Tex installation. I found this brief guide to solve it on Windows: enter link description here
So, I did what it says: Sys.which("pdflatex") and received:
pdflatex
""
Ten I typed: Sys.getenv("PATH"), obtaining:
1 "C:\Program Files\R\R-3.1.2\bin\x64;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;:/usr/texbin:/usr/texbin"
Finally, I entered: Sys.setenv(PATH=paste(Sys.getenv("PATH"),"/usr/texbin",sep=":")), but when I try to knit PDF again it shows me the same error message. Thanks for all your time, I would appreciate any help.
I'm working on a 64 bit Windows, so the Sys.which("pdflatex") returned:
C:\Program Files\MiKTeX 2.9\miktex\bin\x64\pdflatex.exe
Type in sessionInfo(). You should se something like this:
R version 3.1.2 (2014-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Depending on your system the path could be either: C:\Program Files\MiKTeX 2.9\miktex\bin (for the 32-bit version) or C:\Program Files\MiKTeX 2.9\miktex\bin\x64 (for the 64-bit version).
Edit your PATH variable. You're on windows, but you've tried to add a UNIX-style directory (i.e., separated from the other directories by : and using / rather than \). '/usr/texbin/' is probably not a directory on your computer.
Check your path. It might look like this C:\Program Files\MiKTeX 2.9\miktex\bin\x64 assuming you're working on a x64 OS. After that, open a cmd console and check if is everthing ok with this command: pdflatex.exe -version. Then restart RStudio and try to render your pdf again.