Installed
r-base→ Trình thông dịch R lõi, thư viện chuẩn.r-base-dev→ Trình biên dịch & header để build package.- RStudio Server → Web IDE truy cập qua trình duyệt.
Truy cập RStudio Server
Mở trên trình duyệt của bạn: http://<server-ip>:8787
Login with:
- Username:
rstudio - Password: (check
/root/.cloudzy-creds)
Command Line R
Khởi chạy R trực tiếp từ terminal:
R
Các file và thư mục quan trọng
R Environment:
/etc/R→ Cấu hình R toàn hệ thống./usr/bin/R→ R binary./usr/lib/R→ Base R libraries./usr/local/lib/R/site-library→ Các package bổ sung toàn site.
RStudio Server:
/etc/rstudio/→ Main config (rstudio-server.conf,database.conf, etc)./var/log/rstudio/rstudio-server/→ Server logs./var/lib/rstudio-server/→ Trạng thái, phiên làm việc, dữ liệu lưu trữ./usr/lib/rstudio-server/→ RStudio binaries./home/rstudio/→ Workspace mặc định của người dùng.
Installing Packages
Từ repository Ubuntu (toàn hệ thống):
sudo apt install r-cran-curl
Từ R console (phiên bản mới nhất từ CRAN):
install.packages("ggplot2")
Notes
- Bảo vệ cổng 8787 (firewall / reverse proxy).
- Keep
/root/.cloudzy-credsan toàn, file này chứa thông tin đăng nhập.