(OLD) (ARCHIVED) Puppy Linux Discussion Forum Forum Index (OLD) (ARCHIVED) Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info

This forum can also be accessed as http://oldforum.puppylinux.com
It is now read-only and serves only as archives.

Please register over the NEW forum
https://forum.puppylinux.com
and continue your work there. Thank you.

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 28 Sep 2020, 18:52
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Install R (statistical computing language) on Puppy 2.14
Moderators: Flash, Ian, JohnMurga
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
Page 1 of 1 [13 Posts]  
Author Message
acaza

Joined: 11 Apr 2007
Posts: 22

PostPosted: Fri 04 May 2007, 12:32    Post subject:  Install R (statistical computing language) on Puppy 2.14
Subject description: This is what worked for me
 

Mark (MU) was good enough to help me get R running on my computer. I'm passing on the steps I used, so that Mark doesn't have to repeat his work with the next person who can't figure out how to install it. This was for multi-session 2.14, so there may be some small tweaks if you have a different setup.

1. download all items in R-2.4.0 file at http://dotpups.de/dotpups/

2. install them by clicking on the downloaded dotpups
R.2.4.0 (just acknowledge the message about the link it creates)
libg2c
less (click okay to overwrite /usr/bin/less)

then use PETget: menu > setup > puppy package manager > PETget package manager > 2nd button (about installing downloaded package)
navigate to the "alien.packages" file select it

3. download: http://noforum.de/dotpups/libreadline-so-4.pup and install it. R creates a link to the libreadline.so.4 library, but that didn't exist in my puppy. I guess it's a dependency that got missed?

4. At this point, R will run
menu > utility > Rxvt terminal emulator
type: R [just the letter, must be capitalized]

However, I needed R functions that weren't already installed. I get these with the command, inside R, "install.packages." This signals R to download and compile the functions I request. But as part of the function, R uses the "make" command. For that to work, Puppy needs to have the development tools for compiling installed.

5. To get those, go to http://puppylinux.org/wikka/Compiling and get what you need. For me, this was devx for 2.14

If I'd been running from live CD with a pup_sav file, I suppose I would just load this sfs file like any other, but I'm using multi-session DVD, so I had to do this:
download the devx_214.sfs file
save it on HARD DRIVE (I don't know why, but the commands below won't work if I save the devx_214.sfs file in ramdisk)
open a terminal in the directory where I saved the file (right click > window > terminal here)
type these commands into the terminal:
# mkdir mntpt
# losetup /dev/loop2 devx_214.sfs
# mount -t squashfs /dev/loop2 mntpt
# cp -a --remove-destination mntpt/* /

6. One more weird step. I don't know what's up with this, but R is convinced that it has to use the Mandrake compiler. To work around that problem, create a link to trick R into thinking that it is getting the Mandrake compiler when it really gets the Puppy one. Type this into a terminal:
# ln -s /usr/bin/gcc /usr/bin/i586-mandrake-linux-gnu-gcc

At this point, I was all set. Both update.packages and install.packages work, so I can get the functions I need in R.

Thank you, Mark

_________________
aspiring hacker trapped in the mind of a linux noob, using Puppy 2.14 multisesson DVD on Dell XPS M1210
Back to top
View user's profile Send private message 
gary101


Joined: 08 Oct 2006
Posts: 556
Location: Boston, Lincs. UK

PostPosted: Fri 04 May 2007, 12:42    Post subject:  

Please excuse my ignorance, but what is R ?
Back to top
View user's profile Send private message 
acaza

Joined: 11 Apr 2007
Posts: 22

PostPosted: Fri 04 May 2007, 12:44    Post subject:  

R is a statistical computing language. You can use it to do the sorts of things that you would do in commercial packages like SAS or SPSS, only R is free and does a whole lot more.

More info here: http://www.r-project.org/

_________________
aspiring hacker trapped in the mind of a linux noob, using Puppy 2.14 multisesson DVD on Dell XPS M1210
Back to top
View user's profile Send private message 
raffy

Joined: 25 May 2005
Posts: 4843
Location: Manila

PostPosted: Fri 04 May 2007, 18:09    Post subject: Thanks  

Thanks, Mark-a (MU is Mark, too, so he must be Mark-u).

I should test it over a weekend, but maybe not this but next. Smile

Should you come up with a list of "R install packages" usually used in college, feel free to post. Maybe I try to build sfs of those.

_________________
Puppy user since Oct 2004. Want FreeOffice? Get the sfs (English only).
Back to top
View user's profile Send private message 
acaza

Joined: 11 Apr 2007
Posts: 22

PostPosted: Fri 04 May 2007, 19:26    Post subject:  

Raffy,

I'm actually Arran (not another Mark). My confusing post was meant to thank THE Mark (MU), who really did all the work.

In terms of R's most used packages, it would depend on what you're studying. I'm in psychology, so I tend to use the inferential statistics stuff associated with GLM. If you were inclined to create an sfs for that, I suggest looking at the R package called Rcmdr. It's meant to be GUI front end for the R language. I find the GUI less useful than actual scripting, but if you look at it's dependencies, they are 25-30 of the most essential GLM-related packages. That would probably be a great place to start for an sfs bundle.

Arran (the puppy user formerly known as Mark-a)

_________________
aspiring hacker trapped in the mind of a linux noob, using Puppy 2.14 multisesson DVD on Dell XPS M1210
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 7024
Location: Auckland, New Zealand

PostPosted: Sat 22 Sep 2007, 22:26    Post subject:  

It is at http://dotpups.de/dotpups/Office/R/R-2.4.0/, and go up for the other dotpups.
Back to top
View user's profile Send private message 
hayden


Joined: 13 Sep 2006
Posts: 62
Location: New Hampshire USA

PostPosted: Mon 11 Feb 2008, 15:30    Post subject:  

This may be a bit late but I thought I would contribute to this thread in return for what I learned from it. I recenlty tried to install R in Puppy 2.14, had trouble, searched the Forum, missed this thread, and started another

http://www.murga-linux.com/puppy/viewtopic.php?p=173568#173568

on which someone steered me here.

I agree that Rcmdr's dependencies are a good place to start, and Rcmdr is good for beginners. Still, it does not provide flexibility AND ease of use the way Minitab does.
Plus the version now at CRAN requires R 2.6;-(

For anyone who wants to LEARN R you can access the examples I created for my two-semester intro. stats. sequence at

http://courses.statistics.com/software/help.php

which also has limited support for Rcmdr. If you want more detail I recommend the book on using R in an intro. course by John Verzani. This is for users whereas most of the official R documentation is for programmers. There is a UsingR package to go with it.

Re installation, I used a symbolic link to libreadline.5.1.so for libreadline.4.so The installer created a menu item for R that caused X to freeze when I clicked on it. No trouble running R from a console.
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 7024
Location: Auckland, New Zealand

PostPosted: Tue 12 Feb 2008, 02:04    Post subject:  

I suspect the s20x library might be the most widely used (or perhaps useful) library.

That CD you're talking about doing would be great Hayden. But like Muggins said, the second to last version of Rkward was for QT 3, so it would still be good.
pmg is a gtk gui for R that might also be worth checking out.
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6759
Location: hobart

PostPosted: Tue 12 Feb 2008, 02:28    Post subject:  

Disciple,

I think I scanned too quickly! As hayden pointed out, in the other thread, it also requires kde header files to compile.
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6759
Location: hobart

PostPosted: Tue 12 Feb 2008, 03:17    Post subject:  

This link has possible Gui front-ends for R:

http://www.sciviews.org/_rgui/

I wonder if this one:

http://datamining.togaware.com/survivor/Installation_Details.html

just requires a working gtk installation, or the full gnome?
Back to top
View user's profile Send private message 
ymer

Joined: 18 May 2007
Posts: 16

PostPosted: Wed 05 Mar 2008, 15:00    Post subject:  

disciple wrote:
It is at http://dotpups.de/dotpups/Office/R/R-2.4.0/, and go up for the other dotpups.


With all respects, why it is located inside of Office category, while it should be in Science. I was browsing through dotpups.de today to see if there is any R package, looked into Science and then Programming, never though about Office actually which has probably nothing to do with R. So might be a good idea to move the package to Science section.
Back to top
View user's profile Send private message 
Neolynx

Joined: 17 Jan 2009
Posts: 2

PostPosted: Sat 17 Jan 2009, 21:14    Post subject: Missing library "libg2c.so.0"
Subject description: Problem and solution to R install on pup 4.1.2
 

Thanks for making R available on puppy, all. I got halfway through the instructions above but couldn't run R due to "libg2c.so.0: cannot open shared object file."

I'm brand spankin' new to Linux so was clueless for a while, but finally found help on another distro forum. I guess this is an outdated library that gets left out of newer versions (?)

Anyway, I extracted libg2c.so from http://www.fluvial.ch/download.html into /usr/lib and voila.

Hope that helps somebody else. Anyone know if one of the newer R versions has been compiled for puppy?
Back to top
View user's profile Send private message 
emil

Joined: 10 Nov 2009
Posts: 631
Location: Austria

PostPosted: Sat 09 Jan 2010, 06:41    Post subject: R as pet for puppy 4.31
Subject description: New version available
 

I have compiled R and made a simple pet package.
Dont know exactly about the dependencies, but I have the devx431.sfs and gfortran installed too.

I opened a new thread, download link is there.
More Math soft.

Servus
Emil
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [13 Posts]  
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1076s ][ Queries: 11 (0.0365s) ][ GZIP on ]