启动 R 服务
通过以上命令我们就登录了远程服务器,接下来是启动 R 进程开始运行
R [14:44:16]
R version 3.5.1 (2018-07-02) -- "Feather Spray"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-redhat-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.
Natural language support but running in an English locale
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.
Attaching package: ‘emayili’
The following object is masked from ‘package:base’:
body
>
## 可以设置不同的端口
rmote::start_rmote()
?start_rmote
start_rmote package:rmote R Documentation
Initialize a remote servr
Description:
Initialize a remote servr
Usage:
start_rmote(server_dir = file.path(tempdir(), "rmote_server"), port = 4321,
daemon = TRUE, help = TRUE, graphics = TRUE, basegraphics = TRUE,
htmlwidgets = TRUE, hostname = TRUE, history = TRUE)
Arguments:
server_dir: directory to launch servr from
port: port to run servr on
daemon: logical - should the server be started as a daemon?
help: (logical) send results of `?` to servr
graphics: (logical) send traditional lattice / ggplot2 plots to servr
basegraphics: (logical) send base graphics to servr
htmlwidgets: (logical) send htmlwidgets to servr
hostname: (logical) try to get hostname and use it in viewer page title
history: (logical) should history thumbnails be created and shown in
the viewer?