RStudio 版本控制 配置 说明
2012-03-06 15:45
176 查看
一.版本控制软件安装
RStudio 支持两种Version Control 软件:git 和subversion。GIT 官网:http://git-scm.com/
SubVersion 官网:http://subversion.apache.org/
这里我直接使用YUM 来安装:
Linux 使用光盘搭建 本地 YUM 服务器
/article/1448757.html
[root@rac1 /]# yum install git-core
Loaded plugins: refresh-packagekit
Setting up Install Process
Package git-1.7.1-2.0.1.el6_0.1.x86_64already installed and latest version
Nothing to do
[root@rac1 /]# yum install subversion
Loaded plugins: refresh-packagekit
Setting up Install Process
Package subversion-1.6.11-2.el6_0.3.x86_64already installed and latest version
Nothing to do
[root@rac1 /]#
二. 配置版本控制
2.1 Using a directory already under version control
If you have anexisting directory which is already under Git or Subversion version controlthen you simply need to create a new RStudio project for that directory andthen version control features will be automatically enabled.--如果在Git 或者Subversion 下已经有了一个目录,那么可以创建一个新项目,然后使用这个已经存在的目录,创建完之后,这个项目就可以直接使用版本控制功能,具体操作如下:
To do this:
(1) Execute the NewProject command (from the Project menu)
(2) Choose to create a new projectfrom an Existing Directory
(3) Select the appropriatedirectory and then click Create Project
A new projectwill be created for the directory and RStudio's version control features willthen be available for that directory.
2.2 Creating a new project based on a Git or Subversionrepository
If you have anexisting Git or Subversion repository that you want to use as the basis for anRStudio project you should:(1) Execute the NewProject command (from the Project menu)
(2) Choose to create a new projectfrom Version Control
(3) Choose Git or Subversion asappropriate
(4) Provide the repository URL (andother appropriate options) and then click Create Project
The remoterepository will be cloned into the specified directory and RStudio's versioncontrol features will then be available for that directory.
2.3 Adding version control to a project
If you have an existingdirectory that you want to add version control to, you should consult thedocumentation for Git or Subversion concerning how to initialize a repository(both local commands as well as commands required to connect it to a remoteserver).Subversiondirectories are always paired with an external repository, so cannot beconfigured for version control without also configuring the externalconnection. However, Git repositories can be created in purely local mode (iffor example you want to track changes locally but aren't concerned withcollaborating and/or syncing between multiple workstations). To add a gitrepository to an existing project:
(1) Execute the ProjectOptions command (from the Project menu)
(2) Choose VersionControl options
(3) Change the version controlsystem from (None) to Git
(4) Confirm that you wish toinitialize a new Git repository
A Git repositorywill be created for the project and you'll be prompted to restart RStudio toenable version control features for the project.
三.示例
这里用Linux 下的 RStudio Server 演示:1. 配置版本控制服务器
这里可以自己搭建一个服务器,也可以使用google projecthosting .Linux 搭建SVN 服务器
/article/1449163.html
我们这里使用googleproject hosting(https://code.google.com/hosting/)。
创建一个项目:tianlesoftware,对应地址:
https://code.google.com/p/tianlesoftware/
2. 在RStudio 中配置
现在我们在RStudio创建一个新项目:在Commit的时候需要输入OS 用户的密码,google Code 用户名,和密码,注意这里的密码不是账户的密码,而是单独生成的一个密码:
在这里点击generated 就可以查看密码了:
-------------------------------------------------------------------------------------------------------
版权所有,文章允许转载,但必须以链接方式注明源地址,否则追究法律责任!
Skype: tianlesoftware
Email: tianlesoftware@gmail.com
Blog: http://www.tianlesoftware.com
Weibo: http://weibo.com/tianlesoftware
Twitter: http://twitter.com/tianlesoftware
Facebook: http://www.facebook.com/tianlesoftware
Linkedin: http://cn.linkedin.com/in/tianlesoftware
-------加群需要在备注说明Oracle表空间和数据文件的关系,否则拒绝申请----
DBA1 群:62697716(满); DBA2 群:62697977(满) DBA3 群:62697850(满)
DBA 超级群:63306533(满); DBA4 群:83829929 DBA5群: 142216823
DBA6 群:158654907 DBA7 群:172855474 DBA总群:104207940
相关文章推荐
- RStudio 版本控制 配置 说明
- RStudio 版本控制 配置 说明
- RStudio 版本控制 配置 说明
- RStudio 版本控制 配置 说明
- SVN版本控制安装配置说明
- WinServer2003环境下如何配置TortiseSVN(版本控制)服务器端
- 版本控制——TortoiseSVN (1)安装与配置
- 第四部分 DB2 V7.X 版本SQL存储过程编译配置说明
- 配置管理--版本控制的目的
- Windows7下SPIN6.2.6版本及ispin安装 分类: 安装配置说明 2014-10-10 15:45 204人阅读 评论(0) 收藏
- 关于eclipse配置svn版本控制工具
- Github网页版完成版本控制使用说明
- Eclipse+SVN--SVN版本控制服务端和客户端配置(Apache+SVN+TortoiseSVN+Eclipse+Subclipse plugin)
- windows下MySQL5.6版本安装及配置过程附有截图和详细说明
- Android进阶#(8/12)让不断升级的系统更好管理——Git 版本控制_原理+配置
- 文件服务器 之 Debian下配置使用Subversion版本控制服务器
- Cassandra3.9版本配置文件参数说明
- Eclipse+SVN--SVN版本控制服务端和客户端配置(Apache+SVN+TortoiseSVN+Eclipse+Subclipse plugin)
- Cassandra3.9版本基础入门2-基本配置说明
- 使用阿里云Code进行版本控制并配置IDEA