Rstudio Version Control Configuration

Source: Internet
Author: User

 

1. Install Version Control Software

Rstudio supports two Version Control Software: git and subversion.

 

Git Website: http://git-scm.com/

Subversion Official Website: http://subversion.apache.org/

 

Here I directly use yum for installation:

Linux uses a CD to build a local Yum Server

Http://blog.csdn.net/tianlesoftware/article/details/7302358

 

[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. Configure Version Control

 

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.

-- If a directory already exists in git or subversion, you can create a new project and use the existing Directory, you can directly use the version control function for this project. The specific operations are as follows:

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 shoshould:

 

(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, you shoshould 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 used red with an external repository, so cannot beconfigured for version control without also authentication ing 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.

 

Iii. Example

Here we use the rstudio server in Linux to demonstrate:

 

1. Configure the Version Control Server

 

You can build a server by yourself or use Google projecthosting.

 

Build SVN server in Linux

Http://blog.csdn.net/tianlesoftware/article/details/6119231

 

Here we use googleproject hosting (https://code.google.com/hosting ).

Create a project: tianlesoftware, corresponding address:

Https://code.google.com/p/tianlesoftware/

 

 

 

 

2. Configure in rstudio

Now we create a new project in rstudio:

 

 

 

 

 

 

 

 

You need to enter the OS user password, Google Code username, and password during commit. Note that the password here is not the account password, but a separate password:

 

 

Click generated here to view the password:

 

 

 

 

 

 

 

 

Bytes -------------------------------------------------------------------------------------------------------

All rights reserved. reprinted articles are allowed, but source addresses must be indicated by links. Otherwise, the documents will be held legally responsible!

Skype: tianlesoftware

Email: tianlesoftware@gmail.com

Blog: http://www.tianlesoftware.com

WEAVER: http://weibo.com/tianlesoftware

Twitter: http://twitter.com/tianlesoftware

Facebook: http://www.facebook.com/tianlesoftware

LinkedIn: http://cn.linkedin.com/in/tianlesoftware

 

------- Add a group to describe the relationship between Oracle tablespace and data files in the remarks section. Otherwise, reject the application ----

Dba1 group: 62697716 (full); dba2 group: 62697977 (full) dba3 group: 62697850 (full)

Super DBA group: 63306533 (full); dba4 group: 83829929 dba5 group: 142216823

Dba6 group: 158654907 dba7 group: 172855474 DBA group: 104207940

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.