Package Details: rstudio-desktop-git 1.1.215-1

Git Clone URL: (read-only)
Package Base: rstudio-desktop-git
Description: A powerful and productive integrated development environment (IDE) for R programming language
Upstream URL:
Keywords: IDE R statistics
Licenses: AGPL3
Conflicts: rstudio-desktop, rstudio-desktop-bin, rstudio-desktop-preview
Provides: rstudio-desktop, rstudio-desktop-bin, rstudio-desktop-preview
Submitter: None
Maintainer: artemklevtsov
Last Packager: artemklevtsov
Votes: 43
Popularity: 0.778618
First Submitted: 2011-03-09 06:13
Last Updated: 2017-04-28 06:07

Required by (1)

Sources (4)

Latest Comments

hwkiller commented on 2017-06-15 19:23

I'm once again stealing a bit of your PKGBUILD (full disclosure). The rstudio team recently changed their dependencies/common/install-* scripts to see whether you're on ubuntu, suse, or centos, and if you're not on those, it'll throw an error. Your script circumvents that by including pandoc as a dependency and symlinking to the correct directories. This approach fixes the issue, presumably, and so I'm putting your prepare() statements into the rstudio-server-git's pkgbuild.

I assume if this works for the desktop release, it should work for the server release. One thing I noticed though, is that you don't do anything with the dictionaries.
I installed rstudio-server using your prepare statement (and the hunspell-en dependency), but in rstudio-server, it fails to find any dictionaries and throws errors related to hunspell at runtime. So for the time being, I'm using the ./install-dictionaries script.

hwkiller commented on 2017-06-15 02:41

I think this package will now require qt5-webkit-ng for a while. Updated recently, and rstudio crashes. I replaced qt5-webkit with qt5-webkit-ng, and it is working again.

I think the next qt5 release will include the patches from qt5-webkit-ng, so reverting back to qt5-webkit should be fine afterward.

laoshanlong commented on 2017-05-26 21:06

Fails to build, requires, but I have and have no idea what to do.

/usr/lib64/R/bin/exec/R: error while loading shared libraries: cannot open shared object file: No such file or directory
==> ERROR: A failure occurred in prepare().

hwkiller commented on 2017-05-01 23:27

Nevermind. I resolved it. Had to include both the socketproxy-openssl.patch along with a new patch of mine that:
- Changes a reference to <openssl> to <openssl-1.0>
- Changes cmake to forcefully use the and in /usr/lib/openssl-1.0

They don't make this easy.

hwkiller commented on 2017-05-01 19:44

Indeed, thank you for that. I was racking my brain over why my rstudio-server-git package wasn't building.

I'm guessing, though I'm not sure, that this has something to do with the update to openssl from 1.0 to 1.1. I couldn't figure out how to add openssl-1.0 to the cmake system, but even after an hour of trying, it was still failing to build at the same point.

I'm currently trying to apply a patch directly on the .cpp as you did to use openssl-1.0 rather than openssl 1.1; any help you could provide would be very appreciated.

artemklevtsov commented on 2017-04-28 05:23

@dlin many thanks for this.

dlin commented on 2017-04-28 05:14

required patch

xiaohuanyu521 commented on 2017-03-28 16:54

CMake Error at /usr/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
Could NOT find LibR (missing: LIBR_LIBRARIES)
Call Stack (most recent call first):
/usr/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
cmake/modules/FindLibR.cmake:166 (find_package_handle_standard_args)
src/cpp/CMakeLists.txt:260 (find_package)

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
used as include directory in directory /tmp/yaourt-tmp-jadestrong/aur-rstudio-desktop-git/src/rstudio/src/cpp

cmellwig commented on 2017-01-28 14:20

qt5-svg should be a dependency

artemklevtsov commented on 2016-07-14 09:34

mathjax version fixed.

Can anyone help with the clang static analyser works?

mnyolt commented on 2016-07-14 07:26

@cassava: with an up-to-date system (r 3.3.1) and the current rstudio-desktop (d2c000b47da60) I'm not getting your error.

However, since 1898ff716d2f the build stops working due to a switch to mathjax 2.6. The PKGBUILD prepare function needs to be updated. The line
install -d dictionaries mathjax-23 …
has to be changed to
install -d dictionaries mathjax-26 …

cassava commented on 2016-07-09 10:39

With the latest version from git I'm getting the error:

-- Could not find libR shared library.
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find LibR (missing: LIBR_LIBRARIES)

artemklevtsov commented on 2015-11-03 13:49

@wushuzh: you always get the latest tagged commit from git. No need change version for the git packages. The version will be updated automatically during build.

wushuzh commented on 2015-11-03 13:07

After installation, I found that my version is rstudio-desktop-git-0.99.749-1, while the latest version tag in aur is rstudio-desktop-git 0.99.717-1. If there is anyone get the same ?

artemklevtsov commented on 2015-10-15 15:32

Good suggestion. Thank you.

yan12125 commented on 2015-10-15 14:33

I don't request every rstudio users to install community/pandoc. Instead, specify 'pandoc' as a dependency and add 'pandoc' to provides of pandoc-bin allows users to choose from community/pandoc and pandoc-bin.

artemklevtsov commented on 2015-10-15 13:11

pandoc from the community repo depends on haskell libs and ghc (more than 1.5 Gb).

yan12125 commented on 2015-10-15 13:01

There's community/pandoc now. Could you change the dependency pandoc-bin to pandoc? I've also asked pandoc-bin to add pandoc to provides array.

artemklevtsov commented on 2015-08-04 18:03

@johanzebin this known bug in the R 3.2.0. See for the details.

Edit /usr/include/R/Rinterface.h and replace 'int R_running_as_main_program;' with 'extern int R_running_as_main_program;'.

johanzebin commented on 2015-08-04 17:58

I'm running R 3.2.0 and ran into this issue:
multiple definition of `R_running_as_main_program'

As already mentioned by @unikum, the only needed fix is to edit /usr/include/R/Rinterface.h file and add "+extern" to the following line:
-int R_running_as_main_program;
+extern int R_running_as_main_program;

artemklevtsov commented on 2015-08-01 05:05

@kruegsch thanks for the report. It should be fixed now

kruegsch commented on 2015-07-31 22:32

I had an issue in the preparation step.
The directory with gin's version number was missing.

36: -install -d src/gwt/lib/{gin,gwt/$_gwtver}
36: +install -d src/gwt/lib/{gin/${_ginver},gwt/$_gwtver}

EDIT: It was the -f paramter used for unzip. Without it, unzip will create the 1.5 directory and extract the files.

kruegsch commented on 2015-07-31 22:02

I had an issue in the preparation step.
The directory with gin's version number was missing.

36: -install -d src/gwt/lib/{gin,gwt/$_gwtver}
36: +install -d src/gwt/lib/{gin/${_ginver},gwt/$_gwtver}

artemklevtsov commented on 2015-07-25 12:56

Now it works for me. Pls try it.

Weasel commented on 2015-07-20 14:36

Trying to compile this package, but fails:

Linking CXX executable rsession
[ 90%] Built target rsession
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in package().
==> ERROR: Makepkg was unable to build rstudio-desktop-git.

A more exstensive compilation-log found here on pastebin:

artemklevtsov commented on 2015-07-15 06:25

To solve problems with compilation on R version 3.2 edit the /usr/include/R/Rinterface.h file and replace the following:
-int R_running_as_main_program;
+extern int R_running_as_main_program;

artemklevtsov commented on 2015-07-15 05:58

To solve problems with compilation on R version 3.2 edit the /usr/include/R/Rinterface.h file and replace the following:
-int R_running_as_main_program;
+extern int R_running_as_main_program;

artemklevtsov commented on 2015-05-10 12:03

I can't check this now. R 3.2 isn't available in the extra now.

hwkiller commented on 2015-04-28 22:44

This fails to build in a clean source directory.

I updated to r 3.2, and perhaps that broke the rstudio build?

artemklevtsov commented on 2015-04-13 15:56

It's not related with PKGBUILD or install file. This message from source git directory. Yesterday I successfully built it in the clean chroot.

artemklevtsov commented on 2015-04-13 15:56

It's not related with PKGBUILD or install file. This message from source git directory.

gabx commented on 2015-04-13 09:21

unfortunately already done. No changes

artemklevtsov commented on 2015-04-13 08:59

@gabx: cleanup build directory and try again.

gabx commented on 2015-04-13 08:43

Error when makepkg:

==> Downloading and installing packages
Cannot pull with rebase: You have unstaged changes.
Please commit or stash them.
==> ERROR: A failure occurred in prepare().

artemklevtsov commented on 2015-01-27 10:37

Should be fixed now.

hwkiller commented on 2015-01-26 21:03

The latest preview ( v0.99.179 ) failed to build.

wertha commented on 2015-01-11 22:31

Is there a way to fix the jdk7-openjdk dependency. I'm using jdk7 and I don't want to install jdk7-openjdk. I installed it by modifying the PKGBUILD but when I try to update through pacaur is pulling that depency and it is blocking the flow. I'm using yaourt to get around. Probably changing it to java-runtime-common might work, but it is not assuring that a jdk is installed, just that java (jre/jdk) is present. Any other idea?

hwkiller commented on 2014-11-22 22:59

Temporarily circumvented this issue by modifying the prepare() function.

When cd'd into the common/ directory,
sed -e 's/wget/wget --no-check-certificate/g' -i ./install-*

hwkiller commented on 2014-11-22 22:48

--2014-11-22 16:46:18--
Resolving (
Connecting to (||:443... connected.
ERROR: cannot verify's certificate, issued by ‘/C=US/O=VeriSign, Inc./OU=VeriSign Trust Network/OU=Terms of use at (c)10/CN=VeriSign Class 3 Secure Server CA - G3’:
Unable to locally verify the issuer's authority.
To connect to insecurely, use `--no-check-certificate'.

unjello commented on 2014-10-23 20:46

@unikum: perfect. works like a charm. thanks.

artemklevtsov commented on 2014-10-23 19:02


unjello commented on 2014-10-23 18:03

Fails to build because of liblang... which package it belongs to?

-- Found Qt4: /usr/lib/qt4/bin/qmake (found suitable version "4.8.6", minimum required is "4.8.0")
CMake Error at src/cpp/session/CMakeLists.txt:50 (message):
liblang 3.5 not found (re-run install-dependencies script to install)

artemklevtsov commented on 2014-09-21 12:17

Seems this workground works:

artemklevtsov commented on 2014-09-12 03:55

It realted with boost 1.56. Already reported:

hwkiller commented on 2014-09-11 17:43

This fails to build for me. I have a feeling it's actually due to the recent changes to java in arch.

artemklevtsov commented on 2014-09-03 15:06

I successfully build a few minutes ago. I use clean chroot:

gabx commented on 2014-09-03 08:50

nup. same error

artemklevtsov commented on 2014-09-02 15:28

@gabx: clean source directory and try again.

gabx commented on 2014-09-02 06:46

Building error occurs after downloading pandoc
2014-09-02 08:45:13 (3.43 MB/s) - ‘’ saved [97002741/97002741]

Cannot pull with rebase: You have unstaged changes.
Please commit or stash them.

artemklevtsov commented on 2014-08-26 03:22

Added repo:

artemklevtsov commented on 2014-08-16 05:54

I made repo (x86_64 only): Please welcome.

artemklevtsov commented on 2014-08-04 07:16

Without gmp4 I got error:
/usr/lib/rstudio/bin/pandoc/pandoc: error while loading shared libraries: cannot open shared object file: No such file or directory

artemklevtsov commented on 2014-08-02 09:45

Thx, I'll test it.

zeny.entropy commented on 2014-08-02 08:07

As for the gmp requirement , arch linux core package version is fine.
"GMP 6.0 is upwardly source and binary compatible with 5.1, 5.0, 4.x, and 3.x, except for applications that use the semi-documented mpn_bdivmod function. "
R uses gmp as an installable extension package.
R-Studio 3.1 successfully built, gmp package installed, gmpVersion() shows 6.0.0

artemklevtsov commented on 2014-07-24 10:45

artemklevtsov commented on 2014-07-05 05:14

artemklevtsov commented on 2014-06-11 15:34

@priedel: namcap says that it needed:
rstudio-desktop-git I: Link-level dependence (gmp4) in file ['usr/lib/']
Try use pandoc with RStudio.

artemklevtsov commented on 2014-06-11 15:34

@priedel: namcap says that it need:
rstudio-desktop-git I: Link-level dependence (gmp4) in file ['usr/lib/']
Try use pandoc with RStudio.

artemklevtsov commented on 2014-06-11 14:03

Updated. x68_64 package:

dpriedel commented on 2014-06-11 13:51

FYI, I just built the package using the current Arch versions of gmp (6.0.0) and libffi (3.0.13 which provides and had no problems. Rstudio seems to run OK too.

Dave Riedel

sekret commented on 2014-05-11 09:40

Oh ok, I thought that gmp 4.3.2 might just be too new to provide But if it does, my naming scheme doesn't make a lot of sense ;)

artemklevtsov commented on 2014-05-11 09:34

I build and upload packages:
You can install it with `yaourt -U url` command.

artemklevtsov commented on 2014-05-11 09:28

But source code of gmp have 4.3.2 version :) I hope maintainer of gmp4 package will update his package.

sekret commented on 2014-05-11 07:12


I have an idea: You could upload this gmp package with the name gmp3. The 3 because the so version is 3.*. Makes sense right? So we don't get update messages from e.g. yaourt, cower etc.

artemklevtsov commented on 2014-05-11 05:19

I builded gmp4 from this PKGBUILD -
It contain necessary library:
$ yaourt -Ql gmp4
gmp4 /usr/
gmp4 /usr/lib/
gmp4 /usr/lib/
gmp4 /usr/lib/

sekret commented on 2014-05-10 16:24

According to the describtion yes, but according to the comments no ;) Seems like we need an older version. But gmp from [core] only has

gmp /usr/lib/
gmp /usr/lib/
gmp /usr/lib/

so we definitely need an older version. What I find strange is that this isn't detected by the build process!

artemklevtsov commented on 2014-05-10 14:52

gmp4 package will solve " => not found" issue?

sekret commented on 2014-05-10 14:46

Sorry for another comment, but it's really going on my nerves that those dependency files (gwt, dictionaries etc) get downloaded every time, even if I don't remove my src directory. My internet connection is both slow and limited in bandwidth. I think it would make sense to let makepkg download those files by putting them into the source line. Might be out of the ordinary, but I'll create such a PKGBUILD even if it's just for me. I'll provide a pastebin link of course. You can choose then if you'd like to adopt this way of downloading it.

sekret commented on 2014-05-10 14:26

Hm, looks like libffi5 isn't enough, there's still which is provided by gmp4. I'm rebuilding the package right now, will report back.

# ldd /usr/lib/rstudio/bin/pandoc/pandoc (0x00007fff153fe000) => /usr/lib/ (0x00007fa236b07000) => /usr/lib/ (0x00007fa2368ff000) => /usr/lib/ (0x00007fa2366fc000) => /usr/lib/ (0x00007fa2364f8000) => not found => /usr/lib/ (0x00007fa2362f0000) => /usr/lib/ (0x00007fa235fec000) => /usr/lib/ (0x00007fa235c3e000) => /usr/lib/ (0x00007fa235a20000)
/lib64/ (0x00007fa236d1d000)

artemklevtsov commented on 2014-05-10 11:18

thx. I'll fix this.

sekret commented on 2014-05-10 10:39

Looks like this package depends on libffi5. Using namcap you'll see that there are missing libraries, among them /usr/lib/ Installing libffi5 solves this.

saultdon commented on 2014-03-06 17:52

Getting this error during compile:

CMake Error at src/cpp/session/CMakeLists.txt:32 (message):
rmarkdown package not found (re-run install-dependencies script to install)

artemklevtsov commented on 2014-02-08 12:02


petelewis commented on 2014-02-08 10:25

I had to add './install-pandoc' to the PKGBUILD for this to build...

khughitt commented on 2013-03-03 16:09

Oops. ignore out of date flag -- for some reason yaourt still listing qt as a requirement.

khughitt commented on 2013-03-03 16:07

qt dependency needs to be switched to qt4 (

Anonymous comment on 2013-01-17 07:37

I had to run the src/rstudio/dependencies/install-qt-sdk script and update the qt packages with their GUI interface to resolve my issue in a previous comment.

I'm not sure what is installed with the sdk that is not in the core repository qt package, but I know that it resolved my problem.

Thanks for putting the package up.

artemklevtsov commented on 2013-01-16 08:46

Now I get
Found Qt4: /usr/bin/qmake (found suitable version "4.8.4", minimum required is "4.8.0")
and build success.
Archlinux x86_64, qt 4.8.4-1.

Anonymous comment on 2013-01-16 03:31

I'm recieving the following error when attempting to build the package:

QT_UIC_EXECUTABLE) (found suitable version "4.8.4", minimum required is

qmake -query does not list those packages (not sure if that is the right term):

[andy@Arch rstudio-desktop-git]$ qmake -query

Do you know where I can find those additional tools to be able to complete the build?

mrbit commented on 2012-09-08 09:59


artemklevtsov commented on 2012-09-08 09:58

Updated without change pkgrel.

mrbit commented on 2012-09-08 09:37

SO 64bit I installed jdk7-openjdk

openjdk6 e jdk7-openjdk conflict

mrbit commented on 2012-09-08 09:34

SO 64bit ho installato jdk7-openjdk

openjdk6 e jdk7-openjdk conflict

artemklevtsov commented on 2012-08-01 05:28

@pixies: works for me (x86_64). Please give more info, or try to ask developers -

Anonymous comment on 2012-08-01 03:31

[java] at java.util.TimerThread.mainLoop(
[java] at

/tmp/packerbuild-1000/rstudio-desktop-git/rstudio-desktop-git/src/rstudio/src/gwt/build.xml:147: The following error occurred while executing this line:
/tmp/packerbuild-1000/rstudio-desktop-git/rstudio-desktop-git/src/rstudio/src/gwt/build.xml:108: Java returned: 137

Total time: 1 minute 21 seconds
make[2]: ** [gwt_build] Erro 1
make[1]: ** [src/gwt/CMakeFiles/gwt_build.dir/all] Erro 2
make: ** [all] Erro 2
==> ERRO: Uma falha ocorreu em package().
The build failed.

artemklevtsov commented on 2012-07-26 12:28

I use prefix (/usr/lib) like .deb and rpm packages from RStudio website.

mschu commented on 2012-07-23 16:25

Please put large binary blobs in /opt/, not in /usr/lib.

artemklevtsov commented on 2012-07-18 03:20

Now the issue resolved from uptream.

artemklevtsov commented on 2012-07-09 15:25

@Apollo_Costa: Seems it's uupstream issue. You can try describe your problem here -

Anonymous comment on 2012-07-09 09:21


i can't build the R-Studio. Here is my build log: Have anyone a idea ?

artemklevtsov commented on 2012-06-11 08:48

Can't build this package:
-- Found Qt4: /usr/bin/qmake (found suitable version "4.8.2", required is "4.8.0")
CMake Error at src/cpp/session/CMakeLists.txt:20 (message):
Dictionaries not found (re-run install-dependencies script to install)

-- Configuring incomplete, errors occurred!

Pank commented on 2011-04-16 13:18

Hmm, maybe /opt/rstudio/bin/ should be added to PATH?
Also, R should know about /opt/rstudio/R/, especially given the new manipulate library, distributed with Rstuido

Anonymous comment on 2011-03-20 01:47

It's very undesirable behavior for the Qt SDK installer to modify the system like that :( At least we should no longer have that issue.

Now if we can just get rid of those GWT, Guice, and Gin downloads we will be set. Although from what I can tell, they only unpack a zip into the source tree and should not modify your system in any way.

Pank commented on 2011-03-20 00:24

you are right

Anonymous comment on 2011-03-20 00:07

I think the build problem I was having when trying to build without Qt SDK installed with the script RStudio provides. I just tried a build on an Arch VM that I just installed on one of my machines with no Qt SDK installed, and cmake was able to configure without an issue on that system.

The issue is some configuration variables were set by the Qt SDK install in qmake. You can see if this happened to you by running "qmake -query" and checking for any variables referring to the old Qt SDK install. The easiest solution for me was to just reinstall qt by running "pacman -Rnd qt && pacman -S qt". After that, things built again.

I'm updating the package to once again remove the qt-sdk install script.

Anonymous comment on 2011-03-14 19:37

I've re-enabled the qt-sdk install script so things should work again, just with that horribly large download.

Anonymous comment on 2011-03-14 18:31

Thank you Pank, I've been experimenting and seeing the same thing as you. I've raised the issue on the RStudio forum.

Development is moving very fast on the RStudio end from what I can tell and they are constantly tweaking the build system right now. I will try my best to stay on top of it. I just tried two builds about 10 minutes apart and ending up with some git updates when the second ran so they had already committed some changes in those 10 minutes.

Pank commented on 2011-03-14 16:42

It builds when I install Qt sdk.

Pank commented on 2011-03-12 20:25

I tried to remove everything, including the PKGBUILD an re-download everything. It is quite weird. . . It naturally checks for dependencies before building. I use x64, but I don't think that should matter.

Anonymous comment on 2011-03-12 19:46

Hmm that looks like the error you should have gotten on an older version when it could not find the Qt SDK. The sdk shouldn't be needed anymore, so is it possible that your git repo was not up to date? I haven't really tested the ability to update the git repo continually with the PKGBUILD yet (although I think it would work). Try deleting the src directory and regenerating it if you are trying to build on top of an old git checkout.

You have Qt installed I assume since it is a dependency, so that is likely not it.

Unfortunately this is building fine for me on 2 different computers so I can't replicate the error to help you debug

Pank commented on 2011-03-11 09:06

Hmm, not it complains about QT. It seems that it wants qt dependencies for win and mac as well cf. .

Pank commented on 2011-03-11 08:52

Pank asked:
> So can the QT SDK just be removed by rm -r /opt/qtsdk-2010.05 or should I run some kind of script to remove it?
The answer is that there is a bin/uinstall. Find just didn't find it due to permissions :)

Pank commented on 2011-03-11 08:49

So can the QT SDK just be removed by rm -r /opt/qtsdk-2010.05 or should I run some kind of script to remove it?

Anonymous comment on 2011-03-11 05:20

Good news on several fronts! The Qt SDK is no longer downloaded or installed in the build process, saving a lot of time and space. The scripts now also correctly check if gwt has already been downloaded and does not download it in later builds.

Anonymous comment on 2011-03-10 20:13

Upstream has fixed the issue with Boost 1.46 and the package now compiles fine with it.

Anonymous comment on 2011-03-10 17:28

Hmm, you are on boost 1.45 or lower correct? Could you put the entire output of makepkg on pastebin? I suspect there is an error further up in the output that is the cause of your problem.

Pank commented on 2011-03-10 17:08

They should be present

> which ant
> which java

Anonymous comment on 2011-03-10 17:04

Pank - do you have apache-ant and java on your path? The packages for those may not put them on the path and then the makefile cannot find them.

As for gwt, it might be possible to check if its already downloaded, I haven't looked at the script closely that is used for it.

Pank commented on 2011-03-10 11:48

Also, could it maybe check for gwt? Currently, it downloads it every time.

Pank commented on 2011-03-10 11:31

I cannot get past 23%. Might there be a missing dependency or something like that?

[ 22%] Building CXX object src/cpp/core/CMakeFiles/rstudio-core.dir/system/PosixSystem.cpp.o
[ 23%] Building CXX object src/cpp/core/CMakeFiles/rstudio-core.dir/system/PosixUser.cpp.o
Linking CXX static library librstudio-core.a
[ 23%] Built target rstudio-core
make: *** [all] Error 2

Anonymous comment on 2011-03-09 06:17

Note that this does not currently build with boost 1.46, you need to downgrade to 1.45 to get it to build.