Here is the official user's manual for developers as well as users. I am a windows user. So here I try to summarize steps for windows users only. For users of other platform, please consult the manual reference.
Firstly, we need to install some softewares (these are all freewares).
- SSH Secure Shell Client 3.2.9: a SSH protocol client. This is the last free version of this software. It could be easily found online. There is a free SSH client OpenSSH. However, it would clash with Rtools because of multiple cygwin1.dll. One way to solve this is choose not to install cygwin when installing Rtools.
- TortoiseSVN: A windows-interfaced version control software.
- puttygen: A SSH key generator.
- pageant: A authentication agent.
- Double click puttgen.exe and click "generate" (make soem random movemnet).
- Save the private key (do NOT set a password).
- Copy the text in the text field "Public key for pasting into OpenSSH authorized keys file" (or the red selected area in the figure below:
- Go to R-Forge, Login in and go to "My Page" and then click on "Account maintenance". At the bottom of this page, click on "edit key" in the "Shell Account Information" window. Copy and paste the key here.
- The key should look like this:
ssh-rsa AAA... foo@bar
Thirdly, you have to wait an hour for R-Forge to activate the key (No kidding, an hour!!)
Fourthly, double click pageant.exe and load your private key which you save in the 2nd step. After you doble click pageant.exe, you will see a pageant icon in the bottom right of the toolbar. Right click the iconand then "add key".
Finally, install TortoiseSVN and SSH Secure Shell Client. Assume all the default installation steps.
- Link SSH with SVN: Go to the TortoiseSVN folder in the start meanu. "start menu" --> "TortoiseSVN"-->"settings"--"Network" (on the left panel) --> Browse for SHH (on the left panel). The file we are looking for is, for example, C:\Program Files\SSH Communications Security\SSH Secure Shell\ssh2.exe
- Check out package from R-Forge: start up file manager "explorer" and pick a folder you want to store the check-outed package: Right click the mouse and you will see an option "SVN check out" click it (You should still keep pagean running).
In the "URL of repository", type, for example:
substitute "peter" for your R-Forge user name and substitute "arm" for the package name your want to check out!
In the "Checkout directory", type, for example:
A windows will pop out and ask you to type the password. The password is the same as your R-Forge password. Note, you should have you pageant running (check bottom right toolbar) with key loaded. The package will be checked out and you will find under checkout directory, there are some folders created such as "R", "man".
4. Now you have synchronized the package with R-Forge. You can revise it and upload it back to R-Forge. To do this, right click the folder or the files, there will be an option called "SVN commit".
In short, it is really complicated. And in fact, these steps are only useful for developers. For a common user, just checkout the package using:
svn://svn.r-forge.r-project.org/svnroot/arm/pkgOf course, you cannot upload the code back to R-Forge if you are not the administrator or a developer.