R Studio Unable To Locate Binary After Install

Unable to install package in R Studio- Unable to translateto native encoding. I am unable to install the package from my R Studio. Not sure what's the meaning. #' #' Alternatively, you can provide the full URL to an installer binary (e.g. #' for a nightly binary). #' #' @param envname Name of Python environment to install within #' #' @param extrapackages Additional Python packages to install along with #' TensorFlow. #' #' @param restartsession Restart R session after installing (note this will. I have been using R 3.0.2 and R Studio 0.98.501 for 6 months on a Mac without any problems, but after upgrading to Mac OS X Mavericks I stopped being able to open R Studio. Any help would be really appreciated, thanks! This package is brilliant. I am unable to install the 'ecospat' package on R and I was wondering why this could be? After running the following bit of code using R in windows. Install.packages('ecospat') This is the.

Installing R and LaTeX


And after reading this issue, it seems there shouldn't be any problems installing with Rstudio. FWIW, I tried installing r-essentials and Rstudio within conda, but wasn't able to get the conda version of Rstudio to open. I've run the following diagnostic commands in Rstudio as requested.

Contents

1 Introduction
2 Windows
3 MAC OS X
4 Linux
5 Official Presentation Format
6 Further Information
7 Frequently Asked Questions
8 Acknowledgment

1 Introduction

This article explains how to set up an R deveploment enviroment (including LATEX)on various operating systems. We provide a set of instructions for the three majordesktop operating systems Windows, Mac OS X and Linux (Debian-basedsystems in particular) in Sections 2, 3, and 4, respectively. Section 6 includesreferences to related articles and further resources. For more information about Rplease visit the website of the R Project at http://www.r-project.org/.Additional informations about installation and administration of R is available inthe manual at http://cran.r-project.org/doc/manuals/R-admin.html.Further questions not covered by this article and feedback may be sent tostatmath@wu.ac.at.

2 Windows

The instructions in this manual have been written to run/work under Windows 7.Nevertheless, it is possible to configure the R development enviroment on otherWindows versions. To set up a basic R development environment under Windows,please follow the steps below:

  1. Install the current version of R (available from http://CRAN.R-project.org/bin/windows/base/).
  2. Install the R for Windows toolset (known as Rtools, available from http://cran.at.r-project.org/bin/windows/Rtools/ ).
  3. Set up a suitable LATEX environment, preferably installing all available packages and updates (we recommend TeX Live http://www.tug.org/texlive/ or another distribution like MiKTEXhttp://miktex.org/).
  4. Update the PATHs and further environment variables.

Setting up R and LATEX explained in pictures
Installing the R for Windows Toolset

Rtools includes various software packages needed for successfully building Rand R packages (usually packages containing C or FORTRAN source code).It provides Windows with a set of compilers, libraries and various othertools.

LATEXEnvironment

There are two popular options for installing a LATEX environment under Windows.We are supporting the TeX Live distribution but MiKTEX can also be used. While itis possible to download and use the net installer, we recommend to download theISO-Image from http://mirror.ctan.org/systems/texlive/Images/, mount it toa virtual drive (e.g., using the program DAEMON Tools Lite) and install TeX Liveincluding all packages. In order to update the distribution use the TeX Live Manager(Go to Start All Programs TeX Live <Version>TeX Live Manager fullinstallation), (<Version> has to be replaced with the installed TeX Live version).Note that the installation of the LATEX distribution and the corresponding updateprocess could take several hours.

PATH and further environment variables

Presumably the most important step after the installation procedures is to updatethe PATH environment variable.

Rstudio unable to locate binary

To do so go to: Start Control Panel System Advanced system settings Advanced Enviroment Variables.
Search in the System variable list for the PATH variable. Click on edit and enter thecorresponding PATHs into the Variable value field. The PATHs to the ‘bin, x64’ or‘i386’ directories of the following programs have to be included (if they were notincluded automatically):

  • R
  • Rtools
  • TeX Live

Note that the order of the entries is important. Separate them by semicolon. Donot delete other entries, Windows may need them. An example is given below,however there might be different PATHs on the system:

R Studio Unable To Locate Binary After InstallR studio unable to locate binary after installer
(*)C:Program FilesRR-3.1.1binx64;
(*)C:Rtoolsbin;
(*)C:Rtoolsgcc-4.6.3bin;
(*)C:texlive2014binwin32;
(**)%SystemRoot%system32;
(**)%SystemRoot%;%SystemRoot%System32Wbem;
(**)%SYSTEMROOT%System32WindowsPowerShellv1.0;

(*) are relevant PATH for the R development enviroment, (**) are relevant PATH for Windows (do not change them)

RStudio and alternative Text Editors
We recommend using the RStudio IDE which can be downloaded from http://www.rstudio.com/products/rstudio/download/.
Alternatively, here are some links pointing to URLs where it is possible to download other suitable text editors:

emacshttp://vgoulet.act.ulaval.ca/en/emacs/windows/
Notepad++ http://notepad-plus-plus.org/download
TEXnicCenterhttp://www.texniccenter.org/download/
TeXworks http://www.tug.org/texworks/
Tinn-R http://sourceforge.net/projects/tinn-r/
vim http://www.vim.org/download.php

3 MAC OS X

In order to successfully set up a basic development environment for R-related projectsunder MAC OS X it is necessary to follow these four steps:

  1. Install the current version of R (available from http://CRAN.R-project.org/bin/macosx/ ).
  2. Install a LATEX environment (e.g., MacTeX).
  3. Install XCode.
  4. Install the GNU Fortran compiler (gfortran).

LATEXenvironment

A readily usable environment for typesetting scientific articles with LATEX isprovided with the MacTeX distribution available from http://www.tug.org/mactex/.This distribution also includes a text editor named TeXShop.

XCode

Compilers are needed for installing R packages containing source code typicallywritten in C or FORTRAN. A set of C compilers for Mac OS X is providedin XCode, the basic development tools for Mac OS X. Installable eitherfrom the DVD containing the operating system that came with the Mac or,after downloading the latest version from the Apple Developer website athttp://developer.apple.com/technology/xcode.html.

GNU FORTRAN compiler

Unfortunately, the compiler gfortran is not included in XCode. Luckily, since Rversion 2.5.0 the compiler is installed with the R Mac OS X installer (see Step 1:Installing the current version of R). Nevertheless, it is possible to install it manuallyusing the packages provided at http://r.research.att.com/tools/, in case anyproblems are encountered when setting up the compiler.

Text Editors
Links pointing to URLs where it is possible to download suitable text editors:

emacshttp://vgoulet.act.ulaval.ca/en/emacs/mac/
Rstudio http://www.rstudio.org/ide/download/
LyX http://www.lyx.org/Download/
TeXworkshttp://www.tug.org/texworks/#Getting_TeXworks
vim http://www.vim.org/download.php

4 Linux

In this article we focus on Debian-based distributions, as it is hardly possibleto provide a complete set of instructions for every Linux distribution. Themost prominent of such Debian-based Linux distributions is called Ubuntu(http://www.ubuntu.com). Nevertheless, the instructions mentioned in this sectionshould usually work on any Debian-based system.

In order to successfully set up a basic R development environment under Ubuntufollow these three steps:

  1. Install the current version of R (r-base and r-recommended packages).
  2. Install a LATEX environment (e.g., TeX Live available by installing the texlive-full).
  3. Install compilers and other development packages (r-base-dev packages).

Installing R

R is provided in form of a binary Debian package called r-base. It can be installedeither by using the Synaptic Package Manager or by issuing the following commandon the command prompt:

Binary

sudo aptitude install r-base r-recommended

To install a more recent version of R follow the steps provided on the website. ForDebian at http://cran.r-project.org/bin/linux/debian/ or for Ubuntu athttp://cran.r-project.org/bin/linux/ubuntu/.

R Studio Unable To Locate Binary After Installing

LATEXenvironment

A readily usable environment for typesetting scientific articles with LATEX isprovided with the TeX Live distribution available from www.tug.org/texlive/.Luckily, one can install the complete distribution with the texlive-full package veryeasily. It can be installed either using the Synaptic Package Manager or by issuingthe following command:

sudo aptitude install texlive-full texlive-xetex
In order to use the wu-beamerstyle one additionally needs to install thettf-mscorefonts-installer.

sudo aptitude install ttf-mscorefonts-installer

Compilers and Other Tools

Typically, compilers and other development tools are needed in a reasonabledevelopment environment. Those tools are made available on Debian-based systemssimply by installing the r-base-dev package. It can be installed either using theSynaptic Package Manager or by issuing the following command:

sudo aptitude install r-base-dev

RStudio and Text Editors
We recommend using the RStudio IDE which can be downloaded from http://www.rstudio.com/products/rstudio/download/.
The package can than be installed via commandline:
sudo dpkg -i /PathToYourDownloadedFile on Debian/Ubuntu

R Studio Unable To Locate Binary After Installationsudo rpm -i /PathToYourDownloadedFile on Fedora/openSUSE
Please feel free to install the editors you need as mentioned above via SynapticPackage Manager or via commandline:
sudo aptitude install i.e. emacs, vim and so on.

5 Official Presentation Format

As your lecturer may want you to use the wubeamer style for your presentation withinthe scope of our department’s courses, please feel free to download it via svn from theWU’s svn Repository http://www.wu.ac.at/it/instructions/latex_template.Please note that according to our departments understanding the use of the templateis permitted exclusively for courses at the WU. In order to use the wu-beamerstyle(official presentation format, https://svn.wu-wien.ac.at/wu/ login with the WU SVNRepository Login i.e. h+matriculation number + powernet password) oneadditionally needs to install the ttf-mscorefonts-installer.

6 Further Information

More information about the topic can be retrieved from the following references.

  • R Installation and Administration:
    • Windows
      http://cran.r-project.org/doc/manuals/R-admin.html#Installing-R-under-Windows
    • Mac Os X
      http://cran.r-project.org/doc/manuals/R-admin.html#Installing-R-under-Mac-OS-X
    • Unix/Linux
      http://cran.r-project.org/doc/manuals/R-admin.html#Installing-R-under-Unix_002dalikes
  • Writing R Extensions (R-Project):
    http://cran.r-project.org/doc/manuals/R-exts.html
  • Making R packages for the Mac:
    http://personality-project.org/r/makingpackages.html
  • Making R packages under Windows:
    http://cran.r-project.org/doc/contrib/Graves+DoraiRaj-RPackageDevelopment.pdf and http://www.math.ncu.edu.tw/~chenwc/R_note/reference/package/packages.pdf
  • TEX Formula Quick Reference (Wikipedia):
    http://en.wikipedia.org/wiki/Help:Displaying_a_formula
  • LATEX unter Windows (German):
    http://schlosser.info/latexsystem.html

7 Frequently Asked Questions

  1. TeX Live (Windows):
    1. How to make TeX Live recognize ‘Sweave.sty’?

      Answer:

      Go to the R installation directory, i.e., the directory where R has been installed to. We call this directory ‘RHOME’. Search for the LATEX style sheet called ‘Sweave.sty’. Typically it is located in the folder ‘<RHOME>sharetexmf’. Next, one needs to copy the corresponding files to the “personal“ LATEX libary. We will call the directory where TeX Live has been installed ‘TEXHOME’. The “personal“ LATEX library is located in the directory ‘<TEXHOME>texmftexlatex’ and ‘<TEXHOME>texmf-localtexlatex’. Copy the contents of the ‘<RHOME>sharetexmf’ latex folder to the ‘Sweave’ folder in the “personal“ LATEX library. If the ‘Sweave’ folder is not found in the latex library, create it and copy the contents into this folder.
      Eventually the package database needs to be updated.
      Go to Start and open the command line interface by entering cmd. Once the command line interface starts and update the database by entering texhash (use the command texhash.exe).

    2. How to install further LATEX packages?

      Answer: Go to Start All Programs TeX Live <Version>TeX Live Manager. (<Version> has to be replaced with the installed TeX Live version)

      Search for the packages needed, then select the package and click on Install. (It is also possible to select all packages, but this will include many language packs which are probably not needed).

    3. Note that the installation and the update process of TeX Live can take a very long time. Sometimes this can lead to the sytem becoming unresponsive, in that case simply restart the corresponding process.
  2. MiKTEX(Windows):
    1. How to make MiKTEX recognize ‘Sweave.sty’?

      Answer: In Pictures
      Go to the R Installation directory, i.e., the directory where R has been installed to. We call this directory ‘RHOME’. Search for the LATEX style sheet called ‘Sweave.sty’. Typically, it is located in the folder ‘<RHOME>sharetexmf’. Copy the contents of this folder to the ‘Sweave’ folder in the “personal” LATEX library. The location of the LATEX library can be seen by going to Start All ProgramsMiKTeX<Version>1Maintenance Settings.

      Go to the Roots tab, and mark the “Show MiKTeX-maintained root directories” box. Look at the Description where it says “UserInstall,UserConfig”. The coresponding PATH points to the location. Usually it is in ‘<RHOME>Application DataMiKTeX<Version>texlatex’; (<Version>has to be replaced with the installed MiKTEX version). If there is no ‘latex’ and/or ‘Sweave’ folder, create it and copy the contents into this folder.

    2. How to install further LATEX packages?

      Answer: Go to Start All Programs MiKTeX<Version>1Maintenance(Admin) Package Manager(Admin); (<Version>has to be replaced with the installed MiKTEX version).

      Search for the package needed, then right click on the package name and click on Install.

    3. MikTEX offers downloading missing packages but fails.

      Answer: Note that it is required to be able to write to the system library of MiKTEX. Typically this can only be achieved through logging in with Administrator privileges.

8 Acknowledgment

An earlier version of this manual was written by Ksenia Fraczek.

2011-11-29 cy

R Studio Unable To Locate Binary After Installer

We are going to use Rattle for the first few weeks of the course and then switch to RStudio. There are two ways to install Rattle and RStudio. The first way is installing RStudio and then Rattle inside of the RStudio platform. The second way is installing R and Rattle separately and then installing RStudio later on.

In this document, we describe the procedures for doing it with Rstudio first. To do it without Rstudio, just type the commands directly into the R interface. See the Rattle book, DMRR, for more details.

(1) R Studio Installation Guide

Find the right version of an installer for RStudio for your platform here and download it. Once it is downloaded, run the installer and the installation process will start shortly.

For more information about RStudio, please visit https://www.rstudio.com/products/rstudio/download/
The suggested video for the first week also shows how to install Rattle.

(2) Rattle Installation Guide

  • Open RStudio and enter the following command at the prompt (the lower left-hand corner of the screenshot below).
  • install.packages(“rattle”)

R Studio Unable To Locate Binary After Installed

Enter the following two commands at the R prompt. This loads the Rattle package into the library and then starts up Rattle.

  • library(rattle)

To run the Rattle GUI on RStudio, type the following command:

Rstudio Unable To Locate Binary

  • rattle()

If a separate Rattle GUI pops up, you are set to go!

This should be enough on Windows systems.

(3) How to solve the dependency problems (Rattle needs RGtk2, XML, and CarioDevice)

TL;DR

Rattle will install other packages as needed but we can force the install of all other packages Rattle uses in one go if we so wish, using:

  • install.packages(“rattle”, dep=c(“Suggests”))

A longer explanation

If the RGtk2 package has yet to be installed, there will be an error popup indicating that libatk-1.0-0.dll is missing from your computer. Click on the OK and then you will be asked if you would like to install GTK+. Click OK to do so. This then downloads and installs the appropriate GTK+ libraries for your computer. After this has finished, exit from R and restart it, so that it can find the newly installed libraries.

When running Rattle a number of other packages will be downloaded and installed as needed, with Rattle asking for the user’s permission before doing so. They only need to be downloaded just the once.

The installation has been tested [140720] to work on Microsoft Windows, 32bit and 64bit, XP, Vista and 7 with R 3.1.1, Rattle 3.1.0 and RGtk2 2.20.31.

Similarly for XML and CarioDevice packages, click on the OK when you are asked if you would like to install the packages.

(4) Optional for Windows

To use the Microsoft Windows theme engine, and thus have Rattle look like all other Windows applications (in terms of colour and style), create a file with the name gtkrc to contain the following line. Make sure the file name does not have any filename extension (i.e., no .txt or anything else with a dot). The file needs to be located in the GTK+ installation folder. This might be, for example, C:/Users/username/R/win-library/2.15/RGtk2/gtk/i386/etc/gtk-2.0/.

  • gtk-theme-name = “MS-Windows”

(5) Installing Rattle on a Mac

Former student Yicong Li figured out some very useful information. In the past, many Mac owners have had trouble installing Rattle. Here is what she learned, after considerable research. Also: It is worth repeating the regular Rattle install several times. The basic problem is that some additional libraries must be installed in order for Rattle to run. These libraries seem to install only gradually.

These instructions are from April 2017. They may need updating. Please give comments on this message, or mail them to the TA, Feiyang.Chen@rady.ucsd.edu, if you run into additional installation problems. Also, respond if you have suggestions that might be helpful.


Hi Roger,
Just want to update with you that I think I found a solution for installing rattle packages.
Problem: run >library(rattle) and get >error on install GTK+
Solution: Second answer from this site: http://stackoverflow.com/questions/36042749/error-installing-rattle-package-in-mac
Note: No need re-install R or Rstudio, just install XQuartz and GTK+ from links provided.
Then run >install.packages(“rattle”, repos=”http://rattle.togaware.com“, type=”source”)
>library(rattle)
>rattle()
It works on my Mac now. Hope it can help others that having the same problem.
Here is what I did on another machine and it worked.
Install XQuartz from this link.

Run:
>install.packages(“rattle”, dependencies = T)
This will work.