Compute Rental
Ctrl K

Guide

R (RStudio) Installation

GuideIntegrationsFAQSupport
PricingBlog
Quick StartTop-Up and BillingAccelerating Access to Academic ResourcesQuick StartIntroductionMaintenance and TroubleshootingNetwork
PlatformJetBrain ProjectorTmpWebCal Scholars Program @2026Introduction to the Public Beta/Suqian Zone AAbout UsCopying Data Between InstancesAnalysis of Server Performance MetricsTidal Computing PowerLoad Balancing
Domestic ChipsUsing Huawei MindIEHuawei Ascend NPUMooreThread GPU
Environment SetupCUDA/cuDNNMinicondaPython3.XInstalling DependenciesOverviewImages
Enterprise FeaturesFlexible DeploymentElastic Deployment Release NotesBest Practices for Elastic DeploymentPerformance Metrics Monitoring
Container InstancesJupyterLabRemote SSH ConnectionSave the imageScaling ConfigurationMulti-machine, multi-GPU parallel processingDaemonOverviewChange the billing methodMigration Example (Same Region)Migration ExamplesRemote DesktopReset the system
Choosing a GPUGPU SelectionPerformance Testing
DataUpload DataDownload DataPublic DataPublic Cloud Storage (Highly Recommended)Compression / DecompressionFile StorageLocal data diskOverview
Best PracticesFileZillaGitGromacsHuggingFaceKataGoLinux BasicsMPIOpenCLPyCharm Remote DevelopmentR (RStudio) InstallationSSH TunnelTensorBoardRemote Development with VSCodeVisdomVulkanXShellOpen PortsWeChat MessagesPerformanceExpose multiple servicesMoney-Saving TipsComputation Precision IssuesSoftware Sources

Best Practices

R (RStudio) Installation

07/30/202652719 views

Due to a web-related issue with the installation and use of RStudio Server, only R will be installed below.

Installing R and the Necessary Dependencies

apt-get update
apt-get install -y r-base libgbm1 lib32gcc-s1 lib32stdc++6 libc6-i386 libclang-10-dev libclang-common-10-dev libclang-dev libclang1-10 libgc1c2 libllvm10 libobjc-9-dev libobjc4 libxcb-xkb1 libxkbcommon-x11-0

# 如果执行上述命令时显示缺依赖,则执行:
apt -y --fix-broken install

Verification:

终端中输入R命令:
# R

R version 3.6.3 (2020-02-29) -- "Holding the Windsock"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> 1 + 1
[1] 2
>
Next articleMigration Examples
Compute Rental DocsBack to Guide