Rstudio Server版用户添加与使用
server版的好处在于,我们可以从任何地方,只要能够访问该服务器即可使用该服务,且服务器性能等各方面会比较强劲。
参考官方文档:
https://support.rstudio.com/hc/en-us/sections/200150693-RStudio-Server
后台创建用户
用户创建的注意事项:
- RStudio Server will not permit logins by system users (those with user ids lower than 100).
- User credentials are encrypted using RSA as they travel over the network.
- You can manage users with standard Linux user administration tools like useradd, userdel, etc.
- Each user needs to be created with a home directory.
我们可以通过adduser命令在后台创建:
# adduser testr
Adding user `testr' ...
Adding new group `testr' (1001) ...
Adding new user `testr' (1001) with group `testr' ...
Creating home directory `/home/testr' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for testr
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] y
登陆web界面
在浏览器中输入http://<host-ip>:8787即可登陆:
输入刚刚创建的账户与秘密登录,即可使用server版的Rstudio:
数据结构
向量
c {base}
Combine Values into a Vector or List
Usage
c(…, recursive = FALSE)
Arguments
…
objects to be concatenated.
recursive
logical. If recursive = TRUE, the function recursively descends through lists (and pairlists) combining all their elements into a vector.
c(list(A = c(B = 1)))
$A
B
1
c(list(A = c(B = 1)),recursive = TRUE)
A.B
1
对比可知recursive是将A通过嵌套显示出来A的B值为1
本文介绍如何在RStudio Server上创建用户并管理,包括注意事项及使用adduser命令的具体步骤。此外,还提供了向量数据结构的基础示例,展示了recursive参数的作用。
5356

被折叠的 条评论
为什么被折叠?



