LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-07-2010, 07:39 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
About R-Project


Just finished installing R on Ubuntu 10.04, running on a VM, download following packages on repo;

r-base
littler
r-cran-plotrix
r-cran-qtl
r-cran-rggobi

But I could not get R started. r is on /usr/bin/r

On console evoking it just hanging there. Any additional packages I need to install? Thanks

B.R.
satimis
 
Old 08-07-2010, 09:38 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
Install more of R (via synaptic)

#sudo apt-get check


#R

>library(Rcmdr)

'>' is the R prompt
 
Old 08-07-2010, 09:41 AM   #3
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
Also what do you get from

#sudo R --verbose
 
Old 08-07-2010, 10:33 AM   #4
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by amani View Post
Also what do you get from

#sudo R --verbose
Hi amani,

I got it. I should use R (capital letter) NOT r


$ R
Code:
R version 2.10.1 (2009-12-14)
Copyright (C) 2009 The R Foundation for Statistical Computing
ISBN 3-900051-07-0

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
Which command shall I run to exit R rather than closing the terminal? exit/quit didn't work. Thanks

Edit:

I found it on the printout

> q()
Save workspace image? [y/n/c]: n


B.R.
satimis

Last edited by satimis; 08-07-2010 at 10:34 AM.
 
Old 08-07-2010, 10:41 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,512

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Ubuntu 10.04 Lucid : ls -tl /var/lib/dpkg/info/ | grep r-base
→ → r-base r-base-core

which R
The reply is /usr/bin/R

May be you did the command 'r' insted of 'R' ?
( I have no errors. R displays the usual text and the prompt ( > ))
.....
 
Old 08-07-2010, 10:45 AM   #6
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by amani View Post
Install more of R (via synaptic)

#sudo apt-get check


#R

>library(Rcmdr)

'>' is the R prompt
Hi amani,

$ sudo apt-get check

$ R
....
....

> library(Rcmdr)
Code:
Error in library(Rcmdr) : there is no package called 'Rcmdr'

What is the name of the package?

B.R.
satimis
 
Old 08-07-2010, 11:01 AM   #7
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by knudfl View Post
Ubuntu 10.04 Lucid : ls -tl /var/lib/dpkg/info/ | grep r-base
→ → r-base r-base-core
Hi,

$ ls -tl /var/lib/dpkg/info/ | grep r-base
Code:
-rw-r--r-- 1 root root   1399 2010-08-07 18:47 r-base-html.list
-rw-r--r-- 1 root root    166 2010-08-07 18:47 r-base.list
-rw-r--r-- 1 root root    123 2010-08-07 18:32 r-base-dev.list
-rw-r--r-- 1 root root  42701 2010-08-07 18:32 r-base-core.list
-rw-r--r-- 1 root root  53339 2010-01-19 05:38 r-base-core.md5sums
-rw-r--r-- 1 root root    118 2010-01-19 05:38 r-base-core.conffiles
-rwxr-xr-x 1 root root   2453 2010-01-19 05:38 r-base-core.postinst
-rwxr-xr-x 1 root root    160 2010-01-19 05:38 r-base-core.postrm
-rwxr-xr-x 1 root root    667 2010-01-19 05:38 r-base-core.preinst
-rwxr-xr-x 1 root root    689 2010-01-19 05:38 r-base-core.prerm
-rw-r--r-- 1 root root     30 2010-01-19 05:27 r-base-core.shlibs
-rw-r--r-- 1 root root     63 2010-01-18 23:31 r-base-dev.md5sums
-rw-r--r-- 1 root root   1075 2010-01-18 23:31 r-base-html.md5sums
-rw-r--r-- 1 root root    209 2010-01-18 23:31 r-base.md5sums
-rwxr-xr-x 1 root root    425 2010-01-18 23:31 r-base-dev.preinst
Whether I have to install all of them?

Quote:
which R
The reply is /usr/bin/R

May be you did the command 'r' insted of 'R' ?
( I have no errors. R displays the usual text and the prompt ( > ))
.....
Yes I ran

$ which r
/usr/bin/r

because all packages start with r NOT R. Later I found it.

B.R.
satimis
 
Old 08-07-2010, 11:21 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,512

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
What is the name of the package ? ..... ( library(Rcmdr) )
The package providing : /usr/lib/R/site-library/Rcmdr/R/Rcmdr
.. is : r-cran-rcmdr
http://packages.ubuntu.com/search?se...keywords=Rcmdr


P.S. : Sorry , 'dpkg --get-selections | grep r-base' is a more correct
command, to show 'r-base'.
About 'ls -tl /var/lib/dpkg/info/ ' : Mostly used this way ...
ls -tl /var/lib/dpkg/info/ | grep list > last-packages.txt
> 1) to save a text file, 2) to avoid all the pre and post install information.
.....
This is the spectacular one :
dpkg-query -W -f 'section:${section}\t${package}\t${version}\t-\t${architecture}\t-\t${description}\n' | grep r-base
Attached Files
File Type: txt R-base-dependencies.txt (1.6 KB, 11 views)

Last edited by knudfl; 08-07-2010 at 11:51 AM.
 
Old 08-07-2010, 11:56 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,512

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
PPS : the command '/usr/bin/r' is from package 'littler'

http://packages.ubuntu.com/search?se...Fusr%2Fbin%2Fr

Description : http://packages.ubuntu.com/karmic/littler

..

Last edited by knudfl; 08-07-2010 at 11:58 AM.
 
Old 08-07-2010, 11:37 PM   #10
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by knudfl View Post
The package providing : /usr/lib/R/site-library/Rcmdr/R/Rcmdr
.. is : r-cran-rcmdr
http://packages.ubuntu.com/search?se...keywords=Rcmdr

- snip -
Hi,

I can't install r-cran-rcmdr on R;

> install.packages("r-cran-rcmdr", dependencies=TRUE)
Code:
Warning in install.packages("r-cran-rcmdr", dependencies = TRUE) :
  argument 'lib' is missing: using '/home/satimisub04dk01/R/x86_64-pc-linux-gnu-library/2.10'
--- Please select a CRAN mirror for use in this session ---
Loading Tcl/Tk interface ... done
Warning: unable to access index for repository http://mirrors.geoexpat.com/cran/src/contrib
Warning messages:
1: In open.connection(con, "r") : unable to resolve 'cran.r-project.org'
2: In getDependencies(pkgs, dependencies, available, lib) :
  package ‘r-cran-rcmdr’ is not available
I can install it on Ubuntu repo;

$ sudo aptitude install r-cran-rcmdr
Code:
.....
Processing triggers for python-support ...
Setting up r-cran-abind (1.1.0-4) ...
Setting up r-cran-car (1.2-16-2) ...
Setting up r-cran-colorspace (1.0.1-1) ...
Setting up r-cran-vr (7.3-0-1) ...
Setting up r-cran-effects (2.0.10-1) ...
Setting up r-cran-zoo (1.6-2-1) ...
Setting up r-cran-lmtest (0.9.26-1) ...
Setting up r-cran-mvtnorm (0.9-8-1) ...
Setting up r-cran-multcomp (1.1-4-1) ...
Setting up r-cran-relimp (1.0-1-2) ...
Setting up r-cran-rgl (0.89-1) ...
Setting up r-cran-sm (2.2-3-2) ...
Setting up r-cran-sandwich (2.2-5-1) ...
Setting up r-cran-strucchange (1.3-7-2) ...
Setting up r-cran-rcmdr (1.5-4-1ubuntu0.1) ...
Reading package lists... Done             
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done
Writing extended state information... Done
Above packages installed as well.

Others noted and thanks


B.R.
satimis
 
Old 08-07-2010, 11:41 PM   #11
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by knudfl View Post
PPS : the command '/usr/bin/r' is from package 'littler'

http://packages.ubuntu.com/search?se...Fusr%2Fbin%2Fr

Description : http://packages.ubuntu.com/karmic/littler

..
I can't start r

On terminal
$ r


There is no response just hanging there. Whether it is waiting for input? What shall I do?

TIA

B.R.
satimis
 
Old 08-08-2010, 02:39 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,512

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Lots of commands are not "starting" or doing anything without an argument.
( 'r' is not 'R' , and works different.)

Dirk Eddelbuettel littler: http://dirk.eddelbuettel.com/code/littler.html

The r manual : man r

And you can type : r --help
.. and read that the command : 'r --usage' will display more information :
Quote: "More documentation is provided in the 'r' manual page and via
the tests directory in the sources" → → littler_0.1.3.orig.tar.gz
..

Last edited by knudfl; 08-08-2010 at 03:16 AM.
 
Old 08-09-2010, 10:32 AM   #13
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
To install packages use synaptic or

from within R

#sudo R

>install.packages()

After this everything will be on GUIs
 
1 members found this post helpful.
Old 08-11-2010, 07:56 AM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,512

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Thank you, @ amani. ( There is no "Thanks" button in this forum.)

1) 'sudo R' , 2) install.packages()
.. and the tcl-tk GUI will open and show all available packages.


@ satimis, suggest :
Report this thread to be moved to e.g. the 'Software Forum'.
( The 'General Forum' is for things not related to Linux, *nix.)
..
 
Old 08-11-2010, 09:15 AM   #15
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by knudfl View Post
PPS : the command '/usr/bin/r' is from package 'littler'

http://packages.ubuntu.com/search?se...Fusr%2Fbin%2Fr

Description : http://packages.ubuntu.com/karmic/littler

..
Hi knudfl,

Thanks for your advice and links

B.R.
satimis
 
  


Reply

Tags
r-randomfields



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a file to a project via project.vim usernameinuse Linux - Newbie 0 06-22-2010 01:02 PM
[SOLVED] How to store all files related to a c++ project and build in linux. Like project dir sharanlinux Programming 1 04-29-2010 06:52 AM
LXer: The Alexandria Project, Chap. 15: The Alexandria Project Makes the Evening News LXer Syndicated Linux News 0 04-26-2010 10:20 AM
Beginning a big project - Need an Good Project Manager gamehack Programming 3 01-15-2004 11:49 AM
Cannot see Open GL project in KDevelop project wizard SparceMatrix Programming 2 08-07-2002 11:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration