How to install R Studio from a downloaded tar.gz file?Issue installing *gfortran*How to correctly restore system from tar backup?Install haroopad correctly from tar.gzCRC error during extraction of downloaded compressed tar. Tar file is intactHow do I install my wireless network drivers from .tar.gz file?A 100+ GB tar.gz file does not properly extract
Does a reincarnated Draconic Bloodline Sorcerer save his class abilities?
Why does 1.1.1.1 not resolve archive.is?
What is the German word for: "It only works when I try to show you how it does not work"?
What does the British parliament hope to achieve by requesting a third Brexit extension?
"Distance" vs "a distance"
How to give a rationality-inducing drug to an entire software company?
Skewer removal without quick release
Extra battery in the gap of an HDD
If the music alphabet had more than 7 letters would octaves still sound like the same note?
Is Time Machine also backing up my Windwos data from Bootcamp?
Trying to add electrical outlets off of a junction box but the junction box has a lot more wires than Ive been shown so which ones to run it off?
Unable to sync Windows 10 time with time servers
SuperTuxKart 0.9.3-2 has no online multiplayer?
33 Months on Death Row
How can a "proper" function have a vertical slope?
Is it reasonable to ask candidates to create a profile on Google Scholar?
How can a company compel a W2 employee to sign a non-compete agreement?
I'm trying to graph a rational function
Why increase or decrease rudder when using elevator in turns?
What's the current zodiac?
What is the design rationale for having armor and magic penetration mechanics?
How to respond to "Why didn't you do a postdoc after your PhD?"
Can there be an atomic nucleus where there are more protons than neutrons?
How should I tell a professor the answer to something he doesn't know?
How to install R Studio from a downloaded tar.gz file?
Issue installing *gfortran*How to correctly restore system from tar backup?Install haroopad correctly from tar.gzCRC error during extraction of downloaded compressed tar. Tar file is intactHow do I install my wireless network drivers from .tar.gz file?A 100+ GB tar.gz file does not properly extract
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
I have the following file downloaded from R Studio website:
rstudio-1.2.1335-amd64-debian.tar.gz
I have performed the following so far:
sudo tar -zxvf rstudio-1.2.1335-amd64-debian.tar.gz
Please advise how to install such updates? As I already own a previous R Studio.
software-recommendation tar
add a comment
|
I have the following file downloaded from R Studio website:
rstudio-1.2.1335-amd64-debian.tar.gz
I have performed the following so far:
sudo tar -zxvf rstudio-1.2.1335-amd64-debian.tar.gz
Please advise how to install such updates? As I already own a previous R Studio.
software-recommendation tar
add a comment
|
I have the following file downloaded from R Studio website:
rstudio-1.2.1335-amd64-debian.tar.gz
I have performed the following so far:
sudo tar -zxvf rstudio-1.2.1335-amd64-debian.tar.gz
Please advise how to install such updates? As I already own a previous R Studio.
software-recommendation tar
I have the following file downloaded from R Studio website:
rstudio-1.2.1335-amd64-debian.tar.gz
I have performed the following so far:
sudo tar -zxvf rstudio-1.2.1335-amd64-debian.tar.gz
Please advise how to install such updates? As I already own a previous R Studio.
software-recommendation tar
software-recommendation tar
asked May 2 at 14:09
SteveSSteveS
1136 bronze badges
1136 bronze badges
add a comment
|
add a comment
|
1 Answer
1
active
oldest
votes
RStudio is a free and open-source integrated development environment for R, a programming language for statistical computing and graphics.
RStudio is available in open source and commercial editions on the desktop (Windows, Mac, and Linux) and from a web browser to a Linux server running RStudio Server or RStudio Server Pro.
How to install RStudio Desktop 1.2.1335 (Open Source License) on Ubuntu 18.04 using Tarball?
Step 1 — Download tarball from Rstudio website
Download rstudio-1.2.1335-amd64-debian.tar.gz
from Rstudio Official Website (147.8 MB file size) into ~/Download
directory.
Step 2 — Extract tarball into /opt/rstudio
$ sudo mkdir -p /opt/rstudio
$ sudo tar xfvz ~/Downloads/rstudio-1.2.1335-amd64-debian.tar.gz --directory /opt/rstudio
Step 3 — Create symlink latest
$ cd /opt/rstudio/
$ sudo ln -s /opt/rstudio/rstudio-1.2.1335 latest
Figure-1: Setup symlink "latest" to point to rstudio-1.2.1335.
Why do you need symlink latest
?
Symlink latest
always tracks current version of RStudio installation.Tomorrow, let us say, a new version 1.3.1 arrives, then install that
version. Now you removesymlink latest
pointing to older version
1.2.1335, by issuing the following command:$ sudo unlink /opt/rstudio/latest
Symlink latest
points to current version rstudio-1.2.1335 but the arrival of newest version 1.3.1 causes to severe thesymlink latest
from pointing to version 1.2.1335.Now create
symlink latest
pointing to newer version 1.3.1 with the following command:$ cd /opt/rstudio/
$ sudo ln -s /opt/rstudio/rstudio-1.3.1 latestNow
symlink latest
points to newer version rstudio-1.3.1. Note: There is no such version called 1.3.1, this is just afictional
one used to demonstrate the power ofsymlink latest
.At the same time, you may still retain older versions without removing
them. For some reasons you want to work on specific older version, you
simply switchsymlink latest
pointing that older version and that
is it! You don’t have to change any other settings.In step-4 appearing subsequently, you will be setting up
RHOME
,PATH
andLD_LIBRARY_PATH
environement variables. As the values of this environment variables involvesymlink latest
, so that even you switch pointing to newer versions in future, these settings always remain unchanged and untouched!
Step 4 — Create RStudio Environment Variables PATH
, etc.
To set RStudio environment variables, create a new file in the /etc/profile.d
directory.
$ sudo touch /etc/profile.d/rstudio.sh
$ sudo vi /etc/profile.d/rstudio.sh
Then copy and paste the following lines into the file:
#!/bin/bash
export RHOME=/opt/rstudio/latest
export PATH=/opt/rstudio/latest/bin:$PATH
export LD_LIBRARY_PATH=/opt/rstudio/latest/lib:$LD_LIBRARY_PATH
Save and close the file. Make it executable using the following command.
$ sudo chmod +x /etc/profile.d/rstudio.sh
Then, set the environment variables permanently by running the following command:
$ source /etc/profile.d/rstudio.sh
To verify PATH
is correctly set, issue the following command:
$ echo $PATH
Figure-2: PATH environment variable is set properly to "/opt/rstudio/latest/bin".
To verify LD_LIBRARY_PATH
is correctly set, issue the following command:
$ echo $LD_LIBRARY_PATH
Figure-3: LD_LIBRARY_PATH environment variable is set properly to "/opt/rstudio/latest/lib".
Step 5 — RStudio requires R 3.0.1+
If you don't already have R, follow the instructions:
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
$ sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/'
$ sudo apt update
$ sudo apt install r-base
To know the version of R, issue the following command:
$ R --version
Figure-4: R version is 3.6.0.
Step 6 — RStudio IDE
You may invoke RStudio IDE
from command line as shown below:
$ rstudio
This command will take you to the Integrated Development Environment of RStudio.
Figure-5: Command "rstudio" takes you to RStudio IDE.
Step-7: Create shortcut
launcher desktop icon.
Create and install a new desktop file called rstudio.desktop
which is a shortcut
for RStudio.
$ cd ~
$ vi rstudio.desktop
Copy & Paste the following content into the file:
[Desktop Entry]
Name=RStudio
Type=Application
Exec=/opt/rstudio/latest/bin/rstudio
Terminal=false
Icon=/opt/rstudio/latest/rstudio.png
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Save and exit from the editor.
Now, run the following command to install shortcut
file in /usr/share/applications/
directory:
$ sudo desktop-file-install rstudio.desktop
Now, you can click RStudio
shortcut launcher icon from Dash
to enter RStudio IDE.
Figure-6: "RStudio" shortcut launcher icon is shown in redbox on Dash desktop screen.
NOTE-1: With this, installation of RStudio Desktop v1.2.1335 (open source License) is complete.
This is where my Answer to the Post of Questioner SteveS ends. You may quit now.
NOTE-2: If you want to install RStudio Server v1.2.1335 (open source License), then you should go to next step-8, otherwise please quit now.
Step-8: How to install RStudio Server v1.2.1335 (Open Source License)?
RStudio Server enables you to provide a browser based interface to a version of R running on a remote Linux server, bringing the power and productivity of the RStudio IDE to server-based deployments of R.
To download RStudio Server, execute the following commands:
$ cd ~
$ sudo apt-get install gdebi-core
$ wget https://download2.rstudio.org/server/bionic/amd64/rstudio-server-1.2.1335-amd64.deb
Note: You may choose to verify the build’s GPG signature prior to installing it.
Obtaining the Public Key
In order to validate a build’s signature, you must first import and trust RStudio’s public code-signing key. You can obtain the public key from a keyserver using gpg
at the command line:
$ gpg --keyserver keys.gnupg.net --recv-keys 3F32EE77E331692F
gpg: key 3F32EE77E331692F: public key "RStudio, Inc. (code signing) <info@rstudio.com>" imported
gpg: Total number processed: 1
gpg: imported: 1
Validating Build Signatures
Issue the dpkg-sig
command to validate the signature.
Note: You may need to install the dpkg-sig
package if it isn’t already installed.
$ dpkg-sig --verify rstudio-server-1.2.1335-amd64.deb
Processing rstudio-server-1.2.1335-amd64.deb...
GOODSIG _gpgbuilder FE8564CFF1AB93F1728645193F32EE77E331692F 1553752985
To install RStudio Server v1.2.1335, execute the following command:
$ sudo gdebi rstudio-server-1.2.1335-amd64.deb
Issue the following command to verify that RStudio Server is up and running:
$ sudo systemctl status rstudio-server.service
Figure-7: The status command displays "RStudio server 1.2.1335" is up and running.
By default RStudio Server runs on port 8787
and accepts connections from all remote clients. After installation you should therefore be able to navigate a web browser to the following address to access the server:
http://<server-ip>:8787
Since Server and client are in the same machine, you can use http://localhost:8787
to access RStudio server, as shown below:
Figure-8: Supply your usual Ubuntu system username and password to logon to RStudio Server through Web.
RStudio will prompt for a username and password, and will authenticate the user by checking the server's username and password database.
After authentication and logon to RStudio server is successful, you can access IDE through Web as shown below:
Figure-9: After successful logon to RStudio Server, IDE is accessible now through Web.
Next Steps
See the Getting Started document for information on configuring and managing the server.
Read the RStudio Server Professional Admin Guide for more detailed instructions.
+1 Very informative post, wish we could see more of this.
– Jim
May 3 at 4:23
add a comment
|
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1139981%2fhow-to-install-r-studio-from-a-downloaded-tar-gz-file%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
RStudio is a free and open-source integrated development environment for R, a programming language for statistical computing and graphics.
RStudio is available in open source and commercial editions on the desktop (Windows, Mac, and Linux) and from a web browser to a Linux server running RStudio Server or RStudio Server Pro.
How to install RStudio Desktop 1.2.1335 (Open Source License) on Ubuntu 18.04 using Tarball?
Step 1 — Download tarball from Rstudio website
Download rstudio-1.2.1335-amd64-debian.tar.gz
from Rstudio Official Website (147.8 MB file size) into ~/Download
directory.
Step 2 — Extract tarball into /opt/rstudio
$ sudo mkdir -p /opt/rstudio
$ sudo tar xfvz ~/Downloads/rstudio-1.2.1335-amd64-debian.tar.gz --directory /opt/rstudio
Step 3 — Create symlink latest
$ cd /opt/rstudio/
$ sudo ln -s /opt/rstudio/rstudio-1.2.1335 latest
Figure-1: Setup symlink "latest" to point to rstudio-1.2.1335.
Why do you need symlink latest
?
Symlink latest
always tracks current version of RStudio installation.Tomorrow, let us say, a new version 1.3.1 arrives, then install that
version. Now you removesymlink latest
pointing to older version
1.2.1335, by issuing the following command:$ sudo unlink /opt/rstudio/latest
Symlink latest
points to current version rstudio-1.2.1335 but the arrival of newest version 1.3.1 causes to severe thesymlink latest
from pointing to version 1.2.1335.Now create
symlink latest
pointing to newer version 1.3.1 with the following command:$ cd /opt/rstudio/
$ sudo ln -s /opt/rstudio/rstudio-1.3.1 latestNow
symlink latest
points to newer version rstudio-1.3.1. Note: There is no such version called 1.3.1, this is just afictional
one used to demonstrate the power ofsymlink latest
.At the same time, you may still retain older versions without removing
them. For some reasons you want to work on specific older version, you
simply switchsymlink latest
pointing that older version and that
is it! You don’t have to change any other settings.In step-4 appearing subsequently, you will be setting up
RHOME
,PATH
andLD_LIBRARY_PATH
environement variables. As the values of this environment variables involvesymlink latest
, so that even you switch pointing to newer versions in future, these settings always remain unchanged and untouched!
Step 4 — Create RStudio Environment Variables PATH
, etc.
To set RStudio environment variables, create a new file in the /etc/profile.d
directory.
$ sudo touch /etc/profile.d/rstudio.sh
$ sudo vi /etc/profile.d/rstudio.sh
Then copy and paste the following lines into the file:
#!/bin/bash
export RHOME=/opt/rstudio/latest
export PATH=/opt/rstudio/latest/bin:$PATH
export LD_LIBRARY_PATH=/opt/rstudio/latest/lib:$LD_LIBRARY_PATH
Save and close the file. Make it executable using the following command.
$ sudo chmod +x /etc/profile.d/rstudio.sh
Then, set the environment variables permanently by running the following command:
$ source /etc/profile.d/rstudio.sh
To verify PATH
is correctly set, issue the following command:
$ echo $PATH
Figure-2: PATH environment variable is set properly to "/opt/rstudio/latest/bin".
To verify LD_LIBRARY_PATH
is correctly set, issue the following command:
$ echo $LD_LIBRARY_PATH
Figure-3: LD_LIBRARY_PATH environment variable is set properly to "/opt/rstudio/latest/lib".
Step 5 — RStudio requires R 3.0.1+
If you don't already have R, follow the instructions:
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
$ sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/'
$ sudo apt update
$ sudo apt install r-base
To know the version of R, issue the following command:
$ R --version
Figure-4: R version is 3.6.0.
Step 6 — RStudio IDE
You may invoke RStudio IDE
from command line as shown below:
$ rstudio
This command will take you to the Integrated Development Environment of RStudio.
Figure-5: Command "rstudio" takes you to RStudio IDE.
Step-7: Create shortcut
launcher desktop icon.
Create and install a new desktop file called rstudio.desktop
which is a shortcut
for RStudio.
$ cd ~
$ vi rstudio.desktop
Copy & Paste the following content into the file:
[Desktop Entry]
Name=RStudio
Type=Application
Exec=/opt/rstudio/latest/bin/rstudio
Terminal=false
Icon=/opt/rstudio/latest/rstudio.png
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Save and exit from the editor.
Now, run the following command to install shortcut
file in /usr/share/applications/
directory:
$ sudo desktop-file-install rstudio.desktop
Now, you can click RStudio
shortcut launcher icon from Dash
to enter RStudio IDE.
Figure-6: "RStudio" shortcut launcher icon is shown in redbox on Dash desktop screen.
NOTE-1: With this, installation of RStudio Desktop v1.2.1335 (open source License) is complete.
This is where my Answer to the Post of Questioner SteveS ends. You may quit now.
NOTE-2: If you want to install RStudio Server v1.2.1335 (open source License), then you should go to next step-8, otherwise please quit now.
Step-8: How to install RStudio Server v1.2.1335 (Open Source License)?
RStudio Server enables you to provide a browser based interface to a version of R running on a remote Linux server, bringing the power and productivity of the RStudio IDE to server-based deployments of R.
To download RStudio Server, execute the following commands:
$ cd ~
$ sudo apt-get install gdebi-core
$ wget https://download2.rstudio.org/server/bionic/amd64/rstudio-server-1.2.1335-amd64.deb
Note: You may choose to verify the build’s GPG signature prior to installing it.
Obtaining the Public Key
In order to validate a build’s signature, you must first import and trust RStudio’s public code-signing key. You can obtain the public key from a keyserver using gpg
at the command line:
$ gpg --keyserver keys.gnupg.net --recv-keys 3F32EE77E331692F
gpg: key 3F32EE77E331692F: public key "RStudio, Inc. (code signing) <info@rstudio.com>" imported
gpg: Total number processed: 1
gpg: imported: 1
Validating Build Signatures
Issue the dpkg-sig
command to validate the signature.
Note: You may need to install the dpkg-sig
package if it isn’t already installed.
$ dpkg-sig --verify rstudio-server-1.2.1335-amd64.deb
Processing rstudio-server-1.2.1335-amd64.deb...
GOODSIG _gpgbuilder FE8564CFF1AB93F1728645193F32EE77E331692F 1553752985
To install RStudio Server v1.2.1335, execute the following command:
$ sudo gdebi rstudio-server-1.2.1335-amd64.deb
Issue the following command to verify that RStudio Server is up and running:
$ sudo systemctl status rstudio-server.service
Figure-7: The status command displays "RStudio server 1.2.1335" is up and running.
By default RStudio Server runs on port 8787
and accepts connections from all remote clients. After installation you should therefore be able to navigate a web browser to the following address to access the server:
http://<server-ip>:8787
Since Server and client are in the same machine, you can use http://localhost:8787
to access RStudio server, as shown below:
Figure-8: Supply your usual Ubuntu system username and password to logon to RStudio Server through Web.
RStudio will prompt for a username and password, and will authenticate the user by checking the server's username and password database.
After authentication and logon to RStudio server is successful, you can access IDE through Web as shown below:
Figure-9: After successful logon to RStudio Server, IDE is accessible now through Web.
Next Steps
See the Getting Started document for information on configuring and managing the server.
Read the RStudio Server Professional Admin Guide for more detailed instructions.
+1 Very informative post, wish we could see more of this.
– Jim
May 3 at 4:23
add a comment
|
RStudio is a free and open-source integrated development environment for R, a programming language for statistical computing and graphics.
RStudio is available in open source and commercial editions on the desktop (Windows, Mac, and Linux) and from a web browser to a Linux server running RStudio Server or RStudio Server Pro.
How to install RStudio Desktop 1.2.1335 (Open Source License) on Ubuntu 18.04 using Tarball?
Step 1 — Download tarball from Rstudio website
Download rstudio-1.2.1335-amd64-debian.tar.gz
from Rstudio Official Website (147.8 MB file size) into ~/Download
directory.
Step 2 — Extract tarball into /opt/rstudio
$ sudo mkdir -p /opt/rstudio
$ sudo tar xfvz ~/Downloads/rstudio-1.2.1335-amd64-debian.tar.gz --directory /opt/rstudio
Step 3 — Create symlink latest
$ cd /opt/rstudio/
$ sudo ln -s /opt/rstudio/rstudio-1.2.1335 latest
Figure-1: Setup symlink "latest" to point to rstudio-1.2.1335.
Why do you need symlink latest
?
Symlink latest
always tracks current version of RStudio installation.Tomorrow, let us say, a new version 1.3.1 arrives, then install that
version. Now you removesymlink latest
pointing to older version
1.2.1335, by issuing the following command:$ sudo unlink /opt/rstudio/latest
Symlink latest
points to current version rstudio-1.2.1335 but the arrival of newest version 1.3.1 causes to severe thesymlink latest
from pointing to version 1.2.1335.Now create
symlink latest
pointing to newer version 1.3.1 with the following command:$ cd /opt/rstudio/
$ sudo ln -s /opt/rstudio/rstudio-1.3.1 latestNow
symlink latest
points to newer version rstudio-1.3.1. Note: There is no such version called 1.3.1, this is just afictional
one used to demonstrate the power ofsymlink latest
.At the same time, you may still retain older versions without removing
them. For some reasons you want to work on specific older version, you
simply switchsymlink latest
pointing that older version and that
is it! You don’t have to change any other settings.In step-4 appearing subsequently, you will be setting up
RHOME
,PATH
andLD_LIBRARY_PATH
environement variables. As the values of this environment variables involvesymlink latest
, so that even you switch pointing to newer versions in future, these settings always remain unchanged and untouched!
Step 4 — Create RStudio Environment Variables PATH
, etc.
To set RStudio environment variables, create a new file in the /etc/profile.d
directory.
$ sudo touch /etc/profile.d/rstudio.sh
$ sudo vi /etc/profile.d/rstudio.sh
Then copy and paste the following lines into the file:
#!/bin/bash
export RHOME=/opt/rstudio/latest
export PATH=/opt/rstudio/latest/bin:$PATH
export LD_LIBRARY_PATH=/opt/rstudio/latest/lib:$LD_LIBRARY_PATH
Save and close the file. Make it executable using the following command.
$ sudo chmod +x /etc/profile.d/rstudio.sh
Then, set the environment variables permanently by running the following command:
$ source /etc/profile.d/rstudio.sh
To verify PATH
is correctly set, issue the following command:
$ echo $PATH
Figure-2: PATH environment variable is set properly to "/opt/rstudio/latest/bin".
To verify LD_LIBRARY_PATH
is correctly set, issue the following command:
$ echo $LD_LIBRARY_PATH
Figure-3: LD_LIBRARY_PATH environment variable is set properly to "/opt/rstudio/latest/lib".
Step 5 — RStudio requires R 3.0.1+
If you don't already have R, follow the instructions:
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
$ sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/'
$ sudo apt update
$ sudo apt install r-base
To know the version of R, issue the following command:
$ R --version
Figure-4: R version is 3.6.0.
Step 6 — RStudio IDE
You may invoke RStudio IDE
from command line as shown below:
$ rstudio
This command will take you to the Integrated Development Environment of RStudio.
Figure-5: Command "rstudio" takes you to RStudio IDE.
Step-7: Create shortcut
launcher desktop icon.
Create and install a new desktop file called rstudio.desktop
which is a shortcut
for RStudio.
$ cd ~
$ vi rstudio.desktop
Copy & Paste the following content into the file:
[Desktop Entry]
Name=RStudio
Type=Application
Exec=/opt/rstudio/latest/bin/rstudio
Terminal=false
Icon=/opt/rstudio/latest/rstudio.png
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Save and exit from the editor.
Now, run the following command to install shortcut
file in /usr/share/applications/
directory:
$ sudo desktop-file-install rstudio.desktop
Now, you can click RStudio
shortcut launcher icon from Dash
to enter RStudio IDE.
Figure-6: "RStudio" shortcut launcher icon is shown in redbox on Dash desktop screen.
NOTE-1: With this, installation of RStudio Desktop v1.2.1335 (open source License) is complete.
This is where my Answer to the Post of Questioner SteveS ends. You may quit now.
NOTE-2: If you want to install RStudio Server v1.2.1335 (open source License), then you should go to next step-8, otherwise please quit now.
Step-8: How to install RStudio Server v1.2.1335 (Open Source License)?
RStudio Server enables you to provide a browser based interface to a version of R running on a remote Linux server, bringing the power and productivity of the RStudio IDE to server-based deployments of R.
To download RStudio Server, execute the following commands:
$ cd ~
$ sudo apt-get install gdebi-core
$ wget https://download2.rstudio.org/server/bionic/amd64/rstudio-server-1.2.1335-amd64.deb
Note: You may choose to verify the build’s GPG signature prior to installing it.
Obtaining the Public Key
In order to validate a build’s signature, you must first import and trust RStudio’s public code-signing key. You can obtain the public key from a keyserver using gpg
at the command line:
$ gpg --keyserver keys.gnupg.net --recv-keys 3F32EE77E331692F
gpg: key 3F32EE77E331692F: public key "RStudio, Inc. (code signing) <info@rstudio.com>" imported
gpg: Total number processed: 1
gpg: imported: 1
Validating Build Signatures
Issue the dpkg-sig
command to validate the signature.
Note: You may need to install the dpkg-sig
package if it isn’t already installed.
$ dpkg-sig --verify rstudio-server-1.2.1335-amd64.deb
Processing rstudio-server-1.2.1335-amd64.deb...
GOODSIG _gpgbuilder FE8564CFF1AB93F1728645193F32EE77E331692F 1553752985
To install RStudio Server v1.2.1335, execute the following command:
$ sudo gdebi rstudio-server-1.2.1335-amd64.deb
Issue the following command to verify that RStudio Server is up and running:
$ sudo systemctl status rstudio-server.service
Figure-7: The status command displays "RStudio server 1.2.1335" is up and running.
By default RStudio Server runs on port 8787
and accepts connections from all remote clients. After installation you should therefore be able to navigate a web browser to the following address to access the server:
http://<server-ip>:8787
Since Server and client are in the same machine, you can use http://localhost:8787
to access RStudio server, as shown below:
Figure-8: Supply your usual Ubuntu system username and password to logon to RStudio Server through Web.
RStudio will prompt for a username and password, and will authenticate the user by checking the server's username and password database.
After authentication and logon to RStudio server is successful, you can access IDE through Web as shown below:
Figure-9: After successful logon to RStudio Server, IDE is accessible now through Web.
Next Steps
See the Getting Started document for information on configuring and managing the server.
Read the RStudio Server Professional Admin Guide for more detailed instructions.
+1 Very informative post, wish we could see more of this.
– Jim
May 3 at 4:23
add a comment
|
RStudio is a free and open-source integrated development environment for R, a programming language for statistical computing and graphics.
RStudio is available in open source and commercial editions on the desktop (Windows, Mac, and Linux) and from a web browser to a Linux server running RStudio Server or RStudio Server Pro.
How to install RStudio Desktop 1.2.1335 (Open Source License) on Ubuntu 18.04 using Tarball?
Step 1 — Download tarball from Rstudio website
Download rstudio-1.2.1335-amd64-debian.tar.gz
from Rstudio Official Website (147.8 MB file size) into ~/Download
directory.
Step 2 — Extract tarball into /opt/rstudio
$ sudo mkdir -p /opt/rstudio
$ sudo tar xfvz ~/Downloads/rstudio-1.2.1335-amd64-debian.tar.gz --directory /opt/rstudio
Step 3 — Create symlink latest
$ cd /opt/rstudio/
$ sudo ln -s /opt/rstudio/rstudio-1.2.1335 latest
Figure-1: Setup symlink "latest" to point to rstudio-1.2.1335.
Why do you need symlink latest
?
Symlink latest
always tracks current version of RStudio installation.Tomorrow, let us say, a new version 1.3.1 arrives, then install that
version. Now you removesymlink latest
pointing to older version
1.2.1335, by issuing the following command:$ sudo unlink /opt/rstudio/latest
Symlink latest
points to current version rstudio-1.2.1335 but the arrival of newest version 1.3.1 causes to severe thesymlink latest
from pointing to version 1.2.1335.Now create
symlink latest
pointing to newer version 1.3.1 with the following command:$ cd /opt/rstudio/
$ sudo ln -s /opt/rstudio/rstudio-1.3.1 latestNow
symlink latest
points to newer version rstudio-1.3.1. Note: There is no such version called 1.3.1, this is just afictional
one used to demonstrate the power ofsymlink latest
.At the same time, you may still retain older versions without removing
them. For some reasons you want to work on specific older version, you
simply switchsymlink latest
pointing that older version and that
is it! You don’t have to change any other settings.In step-4 appearing subsequently, you will be setting up
RHOME
,PATH
andLD_LIBRARY_PATH
environement variables. As the values of this environment variables involvesymlink latest
, so that even you switch pointing to newer versions in future, these settings always remain unchanged and untouched!
Step 4 — Create RStudio Environment Variables PATH
, etc.
To set RStudio environment variables, create a new file in the /etc/profile.d
directory.
$ sudo touch /etc/profile.d/rstudio.sh
$ sudo vi /etc/profile.d/rstudio.sh
Then copy and paste the following lines into the file:
#!/bin/bash
export RHOME=/opt/rstudio/latest
export PATH=/opt/rstudio/latest/bin:$PATH
export LD_LIBRARY_PATH=/opt/rstudio/latest/lib:$LD_LIBRARY_PATH
Save and close the file. Make it executable using the following command.
$ sudo chmod +x /etc/profile.d/rstudio.sh
Then, set the environment variables permanently by running the following command:
$ source /etc/profile.d/rstudio.sh
To verify PATH
is correctly set, issue the following command:
$ echo $PATH
Figure-2: PATH environment variable is set properly to "/opt/rstudio/latest/bin".
To verify LD_LIBRARY_PATH
is correctly set, issue the following command:
$ echo $LD_LIBRARY_PATH
Figure-3: LD_LIBRARY_PATH environment variable is set properly to "/opt/rstudio/latest/lib".
Step 5 — RStudio requires R 3.0.1+
If you don't already have R, follow the instructions:
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
$ sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/'
$ sudo apt update
$ sudo apt install r-base
To know the version of R, issue the following command:
$ R --version
Figure-4: R version is 3.6.0.
Step 6 — RStudio IDE
You may invoke RStudio IDE
from command line as shown below:
$ rstudio
This command will take you to the Integrated Development Environment of RStudio.
Figure-5: Command "rstudio" takes you to RStudio IDE.
Step-7: Create shortcut
launcher desktop icon.
Create and install a new desktop file called rstudio.desktop
which is a shortcut
for RStudio.
$ cd ~
$ vi rstudio.desktop
Copy & Paste the following content into the file:
[Desktop Entry]
Name=RStudio
Type=Application
Exec=/opt/rstudio/latest/bin/rstudio
Terminal=false
Icon=/opt/rstudio/latest/rstudio.png
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Save and exit from the editor.
Now, run the following command to install shortcut
file in /usr/share/applications/
directory:
$ sudo desktop-file-install rstudio.desktop
Now, you can click RStudio
shortcut launcher icon from Dash
to enter RStudio IDE.
Figure-6: "RStudio" shortcut launcher icon is shown in redbox on Dash desktop screen.
NOTE-1: With this, installation of RStudio Desktop v1.2.1335 (open source License) is complete.
This is where my Answer to the Post of Questioner SteveS ends. You may quit now.
NOTE-2: If you want to install RStudio Server v1.2.1335 (open source License), then you should go to next step-8, otherwise please quit now.
Step-8: How to install RStudio Server v1.2.1335 (Open Source License)?
RStudio Server enables you to provide a browser based interface to a version of R running on a remote Linux server, bringing the power and productivity of the RStudio IDE to server-based deployments of R.
To download RStudio Server, execute the following commands:
$ cd ~
$ sudo apt-get install gdebi-core
$ wget https://download2.rstudio.org/server/bionic/amd64/rstudio-server-1.2.1335-amd64.deb
Note: You may choose to verify the build’s GPG signature prior to installing it.
Obtaining the Public Key
In order to validate a build’s signature, you must first import and trust RStudio’s public code-signing key. You can obtain the public key from a keyserver using gpg
at the command line:
$ gpg --keyserver keys.gnupg.net --recv-keys 3F32EE77E331692F
gpg: key 3F32EE77E331692F: public key "RStudio, Inc. (code signing) <info@rstudio.com>" imported
gpg: Total number processed: 1
gpg: imported: 1
Validating Build Signatures
Issue the dpkg-sig
command to validate the signature.
Note: You may need to install the dpkg-sig
package if it isn’t already installed.
$ dpkg-sig --verify rstudio-server-1.2.1335-amd64.deb
Processing rstudio-server-1.2.1335-amd64.deb...
GOODSIG _gpgbuilder FE8564CFF1AB93F1728645193F32EE77E331692F 1553752985
To install RStudio Server v1.2.1335, execute the following command:
$ sudo gdebi rstudio-server-1.2.1335-amd64.deb
Issue the following command to verify that RStudio Server is up and running:
$ sudo systemctl status rstudio-server.service
Figure-7: The status command displays "RStudio server 1.2.1335" is up and running.
By default RStudio Server runs on port 8787
and accepts connections from all remote clients. After installation you should therefore be able to navigate a web browser to the following address to access the server:
http://<server-ip>:8787
Since Server and client are in the same machine, you can use http://localhost:8787
to access RStudio server, as shown below:
Figure-8: Supply your usual Ubuntu system username and password to logon to RStudio Server through Web.
RStudio will prompt for a username and password, and will authenticate the user by checking the server's username and password database.
After authentication and logon to RStudio server is successful, you can access IDE through Web as shown below:
Figure-9: After successful logon to RStudio Server, IDE is accessible now through Web.
Next Steps
See the Getting Started document for information on configuring and managing the server.
Read the RStudio Server Professional Admin Guide for more detailed instructions.
RStudio is a free and open-source integrated development environment for R, a programming language for statistical computing and graphics.
RStudio is available in open source and commercial editions on the desktop (Windows, Mac, and Linux) and from a web browser to a Linux server running RStudio Server or RStudio Server Pro.
How to install RStudio Desktop 1.2.1335 (Open Source License) on Ubuntu 18.04 using Tarball?
Step 1 — Download tarball from Rstudio website
Download rstudio-1.2.1335-amd64-debian.tar.gz
from Rstudio Official Website (147.8 MB file size) into ~/Download
directory.
Step 2 — Extract tarball into /opt/rstudio
$ sudo mkdir -p /opt/rstudio
$ sudo tar xfvz ~/Downloads/rstudio-1.2.1335-amd64-debian.tar.gz --directory /opt/rstudio
Step 3 — Create symlink latest
$ cd /opt/rstudio/
$ sudo ln -s /opt/rstudio/rstudio-1.2.1335 latest
Figure-1: Setup symlink "latest" to point to rstudio-1.2.1335.
Why do you need symlink latest
?
Symlink latest
always tracks current version of RStudio installation.Tomorrow, let us say, a new version 1.3.1 arrives, then install that
version. Now you removesymlink latest
pointing to older version
1.2.1335, by issuing the following command:$ sudo unlink /opt/rstudio/latest
Symlink latest
points to current version rstudio-1.2.1335 but the arrival of newest version 1.3.1 causes to severe thesymlink latest
from pointing to version 1.2.1335.Now create
symlink latest
pointing to newer version 1.3.1 with the following command:$ cd /opt/rstudio/
$ sudo ln -s /opt/rstudio/rstudio-1.3.1 latestNow
symlink latest
points to newer version rstudio-1.3.1. Note: There is no such version called 1.3.1, this is just afictional
one used to demonstrate the power ofsymlink latest
.At the same time, you may still retain older versions without removing
them. For some reasons you want to work on specific older version, you
simply switchsymlink latest
pointing that older version and that
is it! You don’t have to change any other settings.In step-4 appearing subsequently, you will be setting up
RHOME
,PATH
andLD_LIBRARY_PATH
environement variables. As the values of this environment variables involvesymlink latest
, so that even you switch pointing to newer versions in future, these settings always remain unchanged and untouched!
Step 4 — Create RStudio Environment Variables PATH
, etc.
To set RStudio environment variables, create a new file in the /etc/profile.d
directory.
$ sudo touch /etc/profile.d/rstudio.sh
$ sudo vi /etc/profile.d/rstudio.sh
Then copy and paste the following lines into the file:
#!/bin/bash
export RHOME=/opt/rstudio/latest
export PATH=/opt/rstudio/latest/bin:$PATH
export LD_LIBRARY_PATH=/opt/rstudio/latest/lib:$LD_LIBRARY_PATH
Save and close the file. Make it executable using the following command.
$ sudo chmod +x /etc/profile.d/rstudio.sh
Then, set the environment variables permanently by running the following command:
$ source /etc/profile.d/rstudio.sh
To verify PATH
is correctly set, issue the following command:
$ echo $PATH
Figure-2: PATH environment variable is set properly to "/opt/rstudio/latest/bin".
To verify LD_LIBRARY_PATH
is correctly set, issue the following command:
$ echo $LD_LIBRARY_PATH
Figure-3: LD_LIBRARY_PATH environment variable is set properly to "/opt/rstudio/latest/lib".
Step 5 — RStudio requires R 3.0.1+
If you don't already have R, follow the instructions:
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
$ sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/'
$ sudo apt update
$ sudo apt install r-base
To know the version of R, issue the following command:
$ R --version
Figure-4: R version is 3.6.0.
Step 6 — RStudio IDE
You may invoke RStudio IDE
from command line as shown below:
$ rstudio
This command will take you to the Integrated Development Environment of RStudio.
Figure-5: Command "rstudio" takes you to RStudio IDE.
Step-7: Create shortcut
launcher desktop icon.
Create and install a new desktop file called rstudio.desktop
which is a shortcut
for RStudio.
$ cd ~
$ vi rstudio.desktop
Copy & Paste the following content into the file:
[Desktop Entry]
Name=RStudio
Type=Application
Exec=/opt/rstudio/latest/bin/rstudio
Terminal=false
Icon=/opt/rstudio/latest/rstudio.png
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Save and exit from the editor.
Now, run the following command to install shortcut
file in /usr/share/applications/
directory:
$ sudo desktop-file-install rstudio.desktop
Now, you can click RStudio
shortcut launcher icon from Dash
to enter RStudio IDE.
Figure-6: "RStudio" shortcut launcher icon is shown in redbox on Dash desktop screen.
NOTE-1: With this, installation of RStudio Desktop v1.2.1335 (open source License) is complete.
This is where my Answer to the Post of Questioner SteveS ends. You may quit now.
NOTE-2: If you want to install RStudio Server v1.2.1335 (open source License), then you should go to next step-8, otherwise please quit now.
Step-8: How to install RStudio Server v1.2.1335 (Open Source License)?
RStudio Server enables you to provide a browser based interface to a version of R running on a remote Linux server, bringing the power and productivity of the RStudio IDE to server-based deployments of R.
To download RStudio Server, execute the following commands:
$ cd ~
$ sudo apt-get install gdebi-core
$ wget https://download2.rstudio.org/server/bionic/amd64/rstudio-server-1.2.1335-amd64.deb
Note: You may choose to verify the build’s GPG signature prior to installing it.
Obtaining the Public Key
In order to validate a build’s signature, you must first import and trust RStudio’s public code-signing key. You can obtain the public key from a keyserver using gpg
at the command line:
$ gpg --keyserver keys.gnupg.net --recv-keys 3F32EE77E331692F
gpg: key 3F32EE77E331692F: public key "RStudio, Inc. (code signing) <info@rstudio.com>" imported
gpg: Total number processed: 1
gpg: imported: 1
Validating Build Signatures
Issue the dpkg-sig
command to validate the signature.
Note: You may need to install the dpkg-sig
package if it isn’t already installed.
$ dpkg-sig --verify rstudio-server-1.2.1335-amd64.deb
Processing rstudio-server-1.2.1335-amd64.deb...
GOODSIG _gpgbuilder FE8564CFF1AB93F1728645193F32EE77E331692F 1553752985
To install RStudio Server v1.2.1335, execute the following command:
$ sudo gdebi rstudio-server-1.2.1335-amd64.deb
Issue the following command to verify that RStudio Server is up and running:
$ sudo systemctl status rstudio-server.service
Figure-7: The status command displays "RStudio server 1.2.1335" is up and running.
By default RStudio Server runs on port 8787
and accepts connections from all remote clients. After installation you should therefore be able to navigate a web browser to the following address to access the server:
http://<server-ip>:8787
Since Server and client are in the same machine, you can use http://localhost:8787
to access RStudio server, as shown below:
Figure-8: Supply your usual Ubuntu system username and password to logon to RStudio Server through Web.
RStudio will prompt for a username and password, and will authenticate the user by checking the server's username and password database.
After authentication and logon to RStudio server is successful, you can access IDE through Web as shown below:
Figure-9: After successful logon to RStudio Server, IDE is accessible now through Web.
Next Steps
See the Getting Started document for information on configuring and managing the server.
Read the RStudio Server Professional Admin Guide for more detailed instructions.
edited May 6 at 23:22
answered May 2 at 16:13
MarmayogiMarmayogi
1,3331 gold badge5 silver badges11 bronze badges
1,3331 gold badge5 silver badges11 bronze badges
+1 Very informative post, wish we could see more of this.
– Jim
May 3 at 4:23
add a comment
|
+1 Very informative post, wish we could see more of this.
– Jim
May 3 at 4:23
+1 Very informative post, wish we could see more of this.
– Jim
May 3 at 4:23
+1 Very informative post, wish we could see more of this.
– Jim
May 3 at 4:23
add a comment
|
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1139981%2fhow-to-install-r-studio-from-a-downloaded-tar-gz-file%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown