20150414数据训练营

本文介绍如何在RStudio Server上创建用户并管理,包括注意事项及使用adduser命令的具体步骤。此外,还提供了向量数据结构的基础示例,展示了recursive参数的作用。

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

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值