Showing posts with label console. Show all posts
Showing posts with label console. Show all posts

2014-11-26

CRAN-R_RefreshPart1

Previously

You read already my first R post, this is a refresher.

Setup

You can find R in CRAN.

Setup Related

You can find related projects in CRAN.

Setup Packages

You can find ReShape2 in GitHub or
install.packages("reshape2")
Reshape2 makes it easy to transform data between wide and long formats. reshape2 is based around two key functions: melt and cast: melt takes wide-format data and melts it into long-format data and cast takes long-format data and casts it into wide-format data.

You can find Dplyr in GitHub or
install.packages("dplyr")
Dplyr is the next iteration of plyr, focussing on only data frames. dplyr is faster and has a more consistent API.

You can find DevTools or
install.packages("devtools")
Devtools makes package development a breeze: it works with R’s existing conventions for code structure, adding efficient tools to support the cycle of package development.

You can find PackRat or
install.packages("packrat") 
A dependency management tool for R to make your R projects more isolated, portable, and reproducible.

You can  find KnitR. Elegant, flexible and fast dynamic report generation that combines R with TeX, Markdown, or HTML.

You can find RMarkdown Website or in GitHub or
install.packages("rmarkdown")
R Markdown lets you insert R code into a markdown document. R then generates a final document that replaces the R code with its results.

You can find Shiny or
install.packages("shiny")
Shiny makes it incredibly easy to build interactive web applications with R.
 
You can find Ggplot2 or
install.packages("ggplot2")
An enhanced data visualization package for R.

You can find GgVis or
install.packages("ggvis")
Is the next iteration of the popular ggplot2 graphics package. ggvis creates dynamic, interactive data visualizations.

You can find RforGoogleAdWord post.

Setup R-(D)COM

You can find R-(D)COM in CRAN. Also the R-(D)COM installer.

Setup RStudio

You can find it in it RStudio Website.

Setup PowerShell

You can find PowerShell R Interop in Codeplex.






2014-11-08

CommandLineWith7zip

Command Line under 7-zip

You can use the command prompt commands.

You can use the proper software.

You can use a good setup.

2014-11-07

WindowsEnvironmentVariables

Windows Environment Variables

SYSTEM
SystemDrive=C:
SystemRoot=C:\WINDOWS
APPS
AppsDrive=C:
AppsRoot=C:\Apps
HOME
HOMEDRIVE=C:
HOMEPATH=\Users\root
HOMEROOT=C:\Users
DATA
DataDrive=C:
DataRoot=C:\DATA
SHARE
ShareDrive=C:
ShareRoot=C:\SHARE
OPT
OptDrive=C:
OptRoot=C:\OPT

GrepEmailInTxtFilesRecursively

PowerShell can be used to grep emails from *.txt recursively

Find recursively from root C:\ in all *.txt files emails [any literal]@[any letter]anyNumberOfCharacters.[any letter]from 2 to 6 characters

Get-ChildItem C:\ -include *.txt -rec | Select-String -Pattern "\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,6}" -CaseSensitive

2013-01-11

Microsoft Research Sho Library

Requirements

The dependencies are
Dependencies (Sho 2.0 for IronPython 2.6): .NET 4.0 or higher.
Dependencies (Sho 2.1 for IronPython 2.7): .NET 4.0 or higher, IronPython 2.7

Environment Variables Sho 2.0 for .NET 4

SHODIR=C:\Program Files (x86)\Sho 2.0 for .NET 4
SHOBINDIR=C:\Program Files (x86)\Sho 2.0 for .NET 4\bin

Environment Variables Sho 2.1 for .NET 4 & IronPython 2.7.4

SHODIR=C:\Program Files (x86)\Sho 2.1\
SHOBINDIR=C:\Program Files (x86)\Sho 2.1\bin

Documentation

The documentation is here.

API

The API is here.

External API

The external API is here.

Packages

Learn about the packages in here.

Packages Reference

Learn about the packages'reference here.

Blog

Laern about new developments in here.

 




2012-10-16

About SharePoint 2010 Configuration

Central Administration-Change Port

Using PowerShell:
> Set-SPCentralAdministration -Port 6663
> iisreset

Using CommandPrompt:
> stsadm -o setadminport -port 6663
> iisreset

Using CommandPrompt:
> stsadm -o renamesite -oldurl "http://hostheader/" -newurl "http://hostheader:8888"
> iisreset

SharePoint Server-Rename

Using PowerShell:
> Rename-SPServer -Identity "uglyName" -Name "spcentraladmin"

Using CommandPrompt:
> stsadm -o renameserver -oldservername "uglyName" -newservername "spcentraladmin"

SharePoint Site Collections-Alternate URL:

> New-SPAlternateURL -WebApplication "SP Front End Web App" http://servername1.contoso.com:8888 -Zone "Default"

SharePoint Host Header-Create Site Collection

Using PowerShell:
> New-SPSite http://hosteader.sharepoint/ -OwnerAlias contoso\administrator -HostHeaderWebApplication http://sharepoint

Rename Computer

Using CommandPrompt:
> netdom renamecomputer WIN-94CX1930EF21 /Newname SERVER14
> netdom join /DOMAIN:RWVDEV server13 /userD:RWVDEV\Administrator /password:*
In Windows 7:
> sysdm.cpl -> System -> Computer Name -> Change

All:
> ipconfig /displaydns

2011-04-19

About setuid behavior for (chown & chmod) SUA programs

According to the POSIX standard, a file has permissions that include bits to set a UID (setuid) and set a GID (setgid) when the file is executed. If either or both bits are set on a file, and a process executes that file, the process gains the UID or GID of the file. When used carefully, this mechanism allows a nonprivileged user to execute programs that run with the higher privileges of the file's owner or group. When used incorrectly, however, this can present security risks by allowing nonprivileged users to perform actions that should only be performed by an administrator. For this reason, Utilities and SDK for Subsystem for UNIX-based Applications Setup does not enable support for this mechanism by default.
You should enable support for setuid behavior only if you are sure you will be running programs that require support for this behavior. Even if you do not enable support for setuid behavior when installing Utilities and SDK for Subsystem for UNIX-based Applications, you can enable it later.
Warning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.
To enable Setuid:
    click Start -> Run. type regedit.
    traverse to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SUA
    Double Click on EnableSetuidBinaries -> Set the value to 1.
To disable Setuid:
    click Start -> Run. type regedit.
    traverse to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SUA
    Double Click on EnableSetuidBinaries -> Set the value to 0.
Notes:
  •     you need administrator privileges to do this.
  •     You will have to restart the machine for this setting to take effect.
  •     This is deprecated for the current release, since this has a security impact.

About Console2

Installation

Refer to their web site.

Environment Variables

You can add to PATH the installation path using CONSOLE_PATH:
set CONSOLE_PATH=D:\Console2\

2011-01-02

About Bash

Bash loads different files located in your home directory
.bash_aliases
.bash_history
.bash_login
.bash_logout
.bash_profile
.bashrc
.profile


Cygwin Setup

You can do the setup using config files.

Your home directory should contain three initialization files that control the behavior of bash:

.profile
.bashrc
.inputrc

The Cygwin base installation creates stub files when you start bash for the first time.

.profile (other names are valid, see the bash man page) contains bash commands, executed when bash is started as login shell, e.g. from the command bash --login.
This is a useful place to define and export environment variables and bash functions that will be used by bash and the programs invoked by bash. It is a good place to redefine PATH if needed. We recommend adding a ":." to the end of PATH to also search the current working directory (contrary to DOS, the local directory is not searched by default). Also to avoid delays you should either unset MAILCHECK or define MAILPATH to point to your existing mail inbox.


.bashrc is similar but is executed each time an interactive bash shell is launched. It serves to define elements that are not inherited through the environment, such as aliases. If you do not use login shells, you may want to put the contents of .profile as discussed above in this file instead.

For example, shopt -s nocaseglob, will allow bash to glob filenames in a case-insensitive manner. Note that .bashrc is not called automatically for login shells, you may want to source it inside the .profile file.


.inputrc controls how programs using the readline library (including bash) behave. It is loaded automatically. For full details see the Function and Variable Index section of the GNU readline manual. Consider the following settings:
# Ignore case while completing
set completion-ignore-case on
# Make Bash 8bit clean
set meta-flag on
set convert-meta off
set output-meta on
The first command makes filename completion case insensitive (can be convenient in a Windows environment). The next three commands allow bash to display 8-bit characters (useful for languages with accented characters). Note that tools that do not use readline for display, such as less and ls, require additional settings, which could be put in your .bashrc:
alias less='/bin/less -r'
alias ls='/bin/ls -F --color=tty --show-control-chars'

2010-10-19

About Makefile C Flags

Optimizing Your Makefile C Flags for different OS
There is a different  setup for differents OS:

# Linux defaults:
prefix = /usr
CC=gcc
#CFLAGS=-ggdb -Wall -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
CFLAGS=-O2 -Wall -fomit-frame-pointer -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
LDFLAGS=-s
TREE_DEST=tree

MANDIR=${prefix}/man/man1
VERSION=1.5.2.2
BINDIR=${prefix}/bin
MAN=tree.1

# Uncomment for FreeBSD:
prefix = /usr
CC=gcc
CFLAGS=-O2 -Wall -fomit-frame-pointer
LDFLAGS=-s
TREE_DEST=tree
XOBJS=strverscmp.o
MANDIR=${prefix}/man/man1
VERSION=1.5.2.2
BINDIR=${prefix}/bin
MAN=tree.1

# Uncomment for Solaris:
prefix = /usr
CC=cc
CFLAGS=-xO0 -v
LDFLAGS=
TREE_DEST=tree
XOBJS=strverscmp.o
MANDIR=${prefix}/share/man/man1
VERSION=1.5.2.2
BINDIR=${prefix}/bin
MAN=tree.1

# Uncomment for Cygwin:
prefix = /usr
CC=gcc
CFLAGS=-O2 -Wall -fomit-frame-pointer -DCYGWIN
LDFLAGS=-s
TREE_DEST=tree.exe
XOBJS=strverscmp.o
MANDIR=${prefix}/man/man1
VERSION=1.5.2.2
BINDIR=${prefix}/bin
MAN=tree.1

# Uncomment for OS X:
prefix = /usr
CC=cc
CFLAGS=-O2 -Wall -fomit-frame-pointer -no-cpp-precomp
LDFLAGS=
TREE_DEST=tree
XOBJS=strverscmp.o
MANDIR=${prefix}/man/man1
VERSION=1.5.2.2
BINDIR=${prefix}/bin
MAN=tree.1

# Uncomment for HP/UX:
prefix = /usr
CC=cc
CFLAGS=-Ae +O2 +DAportable -Wall
LDFLAGS=
TREE_DEST=tree
XOBJS=strverscmp.o
MANDIR=${prefix}/man/man1
VERSION=1.5.2.2
BINDIR=${prefix}/bin
MAN=tree.1

# Uncomment for OS/2:
prefix = /usr
CC=gcc
CFLAGS=-02 -Wall -fomit-frame-pointer -Zomf -Zsmall-conv
LDFLAGS=-s -Zomf -Zsmall-conv
TREE_DEST=tree
XOBJS=strverscmp.o
MANDIR=${prefix}/man/man1
VERSION=1.5.2.2
BINDIR=${prefix}/bin
MAN=tree.1

# Uncomment for HP NonStop:
prefix = /opt
CC=c89
CFLAGS=-Wextensions -WIEEE_float -g -Wnowarn=1506 -D_XOPEN_SOURCE_EXTENDED=1 -Wallow_cplusplus_comments
LDFLAGS=
TREE_DEST=tree

MANDIR=${prefix}/man/man1
VERSION=1.5.2.2
BINDIR=${prefix}/bin
MAN=tree.1

2010-03-07

About Linux

Optimizing Hard Drive
There are good Drives to have:
  • /root folder with its environment variable export ROOT=/root
  • /Applications folder with its environment variable export APPS=/Applications
  • /home folder with no environment variable export
  • /Data folder with its environment variable export DATA=/Data
  • /Shar folder with its environment variable export SHAR=/Shar
  • /opt folder with its environment variable export OPTS=/opt

2010-02-23

About Cygwin

Installation and package selection

A good habit is to always have the latest cygwin_setup_executable to have.
Since 2015 you need the lib-usb library to install and the Bonjour Print Services native library from Apple.
In order to have an optimal execution you should always install it on C:\cygwin\ or on D:\cygwin\ .
Install it for "All Users" using the "Unix / binary" mode.

In future updating of packages already on your system, you can simply start the installer and keep hitting "Next" without any other interaction. It remembers what you've already told it.
Now setup.exe has been primed with your preferences, you can update your installation using "unattended" mode with -q.

Cygwin 1.7's setup.exe introduces a -P switch which takes a list of extra packages.
$] setup.exe -q -P aspell-en,cron,ctags,exim,gcc-g++,inetutils,make,mingw-runtime,ncurses,openssh,patch,perl,python,ruby,rxvt,subversion,vim

Configuration
You may have this output at login.

Your group is currently "mkgroup".  This indicates that
the /etc/group (and possibly /etc/passwd) files should be rebuilt.
See the man pages for mkpasswd and mkgroup then, for example, run
mkpasswd -l [-d] > /etc/passwd
mkgroup  -l [-d] > /etc/group
Note that the -d switch is necessary for domain users.


&] cp /etc/passwd /etc/passwd.orig
&] mkpasswd -l -d > /etc/passwd
&] cp /etc/group /etc/group.orig
&] mkgroup -l -d > /etc/group

If you don't know otherwise then you should follow the suggestion, including the note about -d where relevant. After doing that, double-click on the Cygwin icon again to set up your home directory. If you don't then, for example, Terminator will fail to find your home directory and refuse to start.
Even on Cygwin-1.7, you will want to follow the above instructions if, for example, ssh is to think of your home directory as something other than /tmp .

Version validation
$] grep -e 'Installing .*cygwin-[0-9].*\.bz2' /var/log/setup.log

Using environment variables

We may use the following:
  • CYGWIN='tty acl nodosfilewarning title glob winsymlinks proc_retry:3' #ntsec deprecated
  • CYGWIN_HOME=D:\cygwin
  • CYGWIN_PATH=%CYGWIN_HOME%\bin;%CYGWIN_HOME%\sbin;%CYGWIN_HOME%\usr\bin;%CYGWIN_HOME%\usr\sbin;%CYGWIN_HOME%\usr\local\bin
  • CYGWIN_PATH=D:\cygwin\bin;D:\cygwin\sbin;D:\cygwin\usr\bin;D:\cygwin\usr\sbin;D:\cygwin\usr\local\bin
  • LANG=en_US.UTF-8
  • TERM=cygwin
  • HOME="%HOME%\%HOMEPATH%" # A) map it to your windows home using windows user variables *
  • HOME=E: for system and export HOME=%HOME %\%USERNAME% # B) map it to another drive *
  • &] rm -rf "/home/$USERNAME" ; ln -s "/home/$HOME" "/home/$USERNAME" # only for A) and B) *
  • HOME="/home/%USERNAME%" # C) create a default directory in cygwin using windows user variables
  • concat HOME to fstab: $] echo "$USERPROFILE /home/$USERNAME ntfs binary  0 0" >>/etc/fstab ; # D) mount your windows home
  • &] unset TEMPDIR; export TEMPDIR=/temp
  • &] unset TMP; export TMP=/tmp
  • &] unset TEMP; export TEMP=/temp
  • &] export EDITOR=
  • &] export VISUAL=
Using Cygwin to map your WindowsXP home
&] ls ~/My\ Documents/ | while read trgt_ ; do link_=` echo "$trgt_" | sed 's/My\ //g' ` ; echo "ln -s My Documents/$trgt_ $link_" ; ln -s ~/"My Documents/$trgt_" ~/"$link_" ; done
&] ln -s ~/My\ Documents ~/Documents
&] ln -s "$HOMEDRIVE$HOMEPATH"/Application\ Data ~/Application\ Data
&] ln -s "$HOMEDRIVE$HOMEPATH"/Cookies ~/Cookies
&] ln -s "$HOMEDRIVE$HOMEPATH"/Desktop ~/Desktop
&] ln -s "$HOMEDRIVE$HOMEPATH"/Favorites ~/Favorites
&] ln -s "$HOMEDRIVE$HOMEPATH"/Local\ Settings ~/Local\ Settings
&] ln -s "$HOMEDRIVE$HOMEPATH"/NetHood ~/NetHood
&] ln -s "$HOMEDRIVE$HOMEPATH"/PrintHood ~/PrintHood
&] ln -s "$HOMEDRIVE$HOMEPATH"/Recent ~/Recent
&] ln -s "$HOMEDRIVE$HOMEPATH"/SendTo ~/SendTo
&] ln -s "$HOMEDRIVE$HOMEPATH"/Start\ Menu ~/Start\ Menu
&] ln -s "$HOMEDRIVE$HOMEPATH"/Templates ~/Templates
&] ln -s "$HOMEDRIVE$HOMEPATH"/Tracing ~/Tracing
&] ln -s "$HOMEDRIVE$HOMEPATH"/UserData ~/UserData
&] ln -s "$HOMEDRIVE$HOMEPATH"/My\ Videos Movies
&] mkdir perl5 Sites iTunes
&] ln -s /cygdrive/W ~/wuala
&] ln -s wuala/WualaDrive WualaDrive
&] ln -s /cygdrive/Z ~/ZumoDrive

Using Cygwin in the Command Prompt
We can always use Cygwin commands if we add the environement variables in Path=Path;%CYGWIN_HOME%;%CYGWIN_PATH%
.
|-- Application Data
|-- Cookies
|-- Desktop
|-- Documents
|-- Downloads
|-- Dropbox
|-- eBooks
|-- Favorites
|-- Local Settings
|-- Magic Briefcase
|-- Movies
|-- Music
|-- My Documents
|-- NetHood
|-- perl5
|-- Pictures
|-- PrintHood
|-- Public
|-- Received Files
|-- Recent
|-- RemoteDesktop
|-- Resumes
|-- SendTo
|-- Sites
|-- Start Menu
|-- Templates
|-- Tracing
|-- UserData
|-- Videos
|-- Visual Studio 2008
|-- WirelessConnexions
|-- wuala
`-- ZumoDrive

Optimizing Hard Drive
There are good Drives to have:
  • /root folder with its environment variable &] unset ROOTDRIVE; export ROOTDRIVE=/root
  • /Applications folder with its environment variable &] unset APPSDRIVE; export APPSDRIVE=/Applications
  • /home folder with no environment variable export ?
  • /data folder with its environment variable &] unset DATADRIVE; export DATADRIVE=/data
  • /shar folder with its environment variable &] unset SHARDRIVE; export SHARDRIVE=/shar
  • /opt folder with its environment variable &] unset OPTSDRIVE; export OPTSDRIVE=/opt
Choosing a better console: rxvt

You can launch it using:
$] /usr/bin/rxvt -fn Terminal -scrollBar_right -bg blue4 -fg white -ls --saveLines 9999

Adding cool commands
There are good commands to have:
  • tree from his website copy it to / and uncompress it to install
  • mrxvt from his website and follow the procedure
  • fonts
  • asd
Default permissions

$] chmod o-w /usr/local/bin
$] chmod o-w /usr/local
$] chmod o-w /usr
$] chmod o-w /etc
$] chmod o-w /usr/sbin
$] chmod o-w /usr/bin
$] chmod o-w /usr/X11R6/bin
$] chmod o-w /usr/X11R6
$] chmod o-w /cygdrive/c
 

Install aptitude for cygwin

Try this apt-cyg a command-line installer for Cygwin which cooperates with Cygwin Setup and uses the same repository. The syntax is similar to apt-get.
$] svn --force export http://apt-cyg.googlecode.com/svn/trunk/ /bin/ 
$] chmod +x /bin/apt-cyg
$] apt-cyg install nano 

Its usage goes as it follows:
  • "apt-cyg install " to install packages
  • "apt-cyg remove " to remove packages
  • "apt-cyg update" to update setup.ini
  • "apt-cyg show" to show installed packages
  • "apt-cyg find " to find packages matching patterns
  • "apt-cyg describe " to describe packages matching patterns
  • "apt-cyg packageof " to locate parent package

Case sensitive filenames

In the Win32 subsystem filenames are only case-preserved, but not case-sensitive. You can't access two files in the same directory which only differ by case, like Abc and aBc. While NTFS (and some remote filesystems) support case-sensitivity, the NT kernel starting with Windows XP does not support it by default. Rather, you have to tweak a registry setting and reboot. For that reason, case-sensitivity can not be supported by Cygwin, unless you change that registry value.
If you really want case-sensitivity in Cygwin, you can switch it on by setting the registry value
"HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel\obcaseinsensitive"
to 0 and reboot the machine. For least surprise, Cygwin expects this registry value also on Windows NT4 and Windows 2000, which usually both don't know this registry key. If you want case-sensitivity on these systems, create that registry value and set it to 0. On these systems (and only on these systems) you don't have to reboot to bring it into effect, rather stopping all Cygwin processes and then restarting them is sufficient.

    2009-09-09

    Installing R from CRAN, Bioconductor and Related Interfaces

    Use the following link to fetch the last stable version from CRAN .

    R for All
    Choose the last universal tar.gz file.

    R for Windows
    Choose the last installable file.
    We can use R in the CommandPrompt if we add Path=Path;%R_PATH%

    RDCOMServer: Look for other software and install R(D)COM Interface as DCOMServer usig R\DCOMServer and the variable RDCOM_PATH=D:\GNU\R\DCOMServer\bin. But you need rscproxyand rcom installed on R.
    RExcel: Look for this link.

    R for MacOS X
    Choose the last dmg file.

    R for Ubuntu
    Choose the last binary file in /bin/linux/ubuntu or
    &] sudo apt-get -y install r-*

    R for fedora
    Choose the last rpm file in /bin/linux/redhat/fedora1*/{i386,x86_64,src) or
    &] sudo yum -y install R-*

    RStudio (R multiform IDE)
    Choose the last version of R to install in your machine (multiple version are allowed) and install IDE from their site.

    GGobi for R

    iPlots for R

    iPlots eXtreme for R

    ReShape for R

    Plyr for R

    R-commander from R
    Read the documentation.
    You can choose your packages to install from repository or to do it directly from R CMD
    &] sudo R
    &] install.packages("Rcmdr", dependencies=TRUE)
    ] install.packages(c("car","MASS","nnet","XLConnect"))

    Bioconductor from R
    Read the documentation.
    You can choose your packages to install from repository or to do it directly from R CMD
    &] sudo R
    > source("http://bioconductor.org/biocLite.R") ; biocLite()
    > source("http://bioconductor.org/getBioC.R") ; getBioC()

    R Environment Variable
    Windows:
    R_HOME=D:\GNU\R\R-2.10.1
    Ubuntu:
    R_HOME=/usr/lib/R
    OSX:
    R_HOME=/Library/Frameworks/R.framework/Resources
    At the end:
    RHOME=$R_HOME
    R_PATH=$R_HOME/bin
    R_PATH=D:\GNU\R\R-2.10.1\bin
    R_LIBS=$R_HOME/library

    Windows R(D)COM interface for R using CSharp
    Read the documentation.

    RPy interface for R
    Read the documentation.
    &] sudo yum install rpy.i686 #in fedora
    The steps are:
    1. Check that you have built R with the configure option '--enable-R-shlib' to make R as a shared library
    2. &]cd $R_HOME
    3. &]make distclean
    4. &]./configure --enable-R-shlib
    5. &]make
    6. &] make install 
    The 2 following steps are optional:
    1. make a link to RHOME/bin/libR.so in /usr/local/lib or /usr/lib, then run 'ldconfig'
    2. or put the following line in your .bashrc (or equivalent) &] export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:RHOME/bin
    3. or edit the file /etc/ld.so.conf and add the following line RHOME/bin, then run 'ldconfig'.
    4. &] python setup.py install

    RPy2 interface for R
    Read the documentation.
    The steps are:
    1. &] easy_install rpy2
    2. &] tar -zxf rpy2_package.tar.gz
    3. &] cd rpy2_package
    4. &] python setup.py install
    Test:
    import rpy2.tests
    import unittest
    
    # the verbosity level can be increased if needed
    tr = unittest.TextTestRunner(verbosity = 1)
    suite = rpy2.tests.suite()
    tr.run(suite)
    

    RSPython interface for R
    Read the documentation.
    The steps:
    1. &] sudo cp ~/Downloads/RSPython_0.7-1.tar.gz /opt ; cd /opt
    2. &] sudo chmod -R +x RS*
    3. &] sudo R CMD INSTALL -c RSPython_0.7-1.tar.gz

    RSPerl interface for R
    The steps:
    1. &] sudo cp ~/Downloads/RSPerl_0.92-1.tar.gz /opt ; cd /opt
    2. &] sudo chmod -R +x RS*
    3. &] sudo R CMD INSTALL -c -l --configure-args='--with-in-perl' RSPerl_0.92-1.tar.gz # -l is option for PERL5LIB
    Rserve interface for R
    You can try another mirror to fetch the file.
    Read the documentation.
    In R, sudo R
    > install.packages(Rserve)

    RRuby interface for R
    You can try another mirror to fetch the file.
    Read the documentation.
    &] sudo gen install rinruby

    RinRuby interface for R
    You can try another mirror to fetch the file.
    Read the documentation.

    RSRuby interface for R
    You can try another mirror to fetch the file.
    Read the documentation.

    First option:
    1. &] sudo cp ~/Downloads/rsruby*{gem,tgz} /opt ; cd /opt
    2. &] sudo chmod -R +x rs*
    3. &] sudo gem install rsruby-0.5.1.1.gem --with-R-dir=$R_HOME
    Second option:
    1. &] sudo tar -zxf rsruby-0.5.tgz
    2. &] sudo chmod -R +x rs*
    3. &] cd rsruby
    4. &] ruby setup.rb config -- --with-R-dir=$R_HOME
    5. &] ruby setup.rb setup
    6. &] ruby setup.rb test
    7. &] sudo ruby setup.rb install
    This is a new Ruby interface for R/S found at RubyForge .
    Note that you’ll need to set the R_HOME and RHOME environment variable prior to installation.
    On MacOX, RHOME=R_HOME=/Library/Frameworks/R.framework/Resources.
    On Ubuntu, when installed from source, RHOME=R_HOME=/usr/local/lib/R. It is useful to just drop this into /etc/environment so that this variable is set upon login.
    Otherwise update /etc/bash_profile .

    &] export R_HOME=/path/to/R/for/your/OS
    &] export RHOME=/path/to/R/for/your/OS
    &] sudo gem install rsruby -- --with-R-dir=$R_HOME
    On Ubuntu
    &] sudo gem install rsruby -- --with-R-home=/usr/lib/R --with-R-include=/usr/share/R/include
    
    You may try to install it from source. Compile and install the Ruby library using setup.rb as shown. You need to supply
    the location of your R installation for the libR shared library. This will usually be
    the same as R_HOME.
    
    &] cd rsruby
    &] ruby setup.rb config -- --with-R-dir=/usr/lib/R
    &] ruby setup.rb setup
    &] sudo ruby setup.rb install
    
    You may test it
    &] ruby setup.rb test
    
    
    &] irb -rrsruby
    >> @R = RSRuby.instance
    >> @R.wilcox_test([1,2,3],[4,5,6])
    >> foo = @R.as_data_frame(1)
    
    
    
    

    HTMLCode

    HTMLCode Content