HOWTO run R (statistical language) in Puppy (working cheat!)

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
User avatar
Owl
Posts: 64
Joined: Sat 24 Dec 2005, 15:35
Location: Kirchroa, the Netherlands

HOWTO run R (statistical language) in Puppy (working cheat!)

#1 Post by Owl »

Dear all,

I have been asking the forums with questions on how to get R (http://www.r-project.org/) running on a Puppy Live CD 1.0.7 session for a while now, and feel obliged nowthat I finally got it to work to share on the forum.

Thanks very much to Mark U, who pointed me to a very simple but working solution (http://www.murga.org/~puppy/viewtopic.p ... highlight=):

1. I installed Mepis (www.mepis.org), version 3.4.3, RC4 on a seperate hdd, and upgraded the basic system with synaptic, installing R-base and dependent modules.
2. booted up puppy 1.0.7 from livecd, mounting my usual pup001
3. opened up an rxvt console, typed in: chroot /mnt/hda1
4. start R as usual (R)
5. and off I can go !!!

This represents a working solution, thanks for all who pointed me in the right direction,
regards,

Owl.
________________________
Soooooooo happy with Puppy !

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#2 Post by MU »

fine.
Now you could run
which R
to find out where it is located (for example in /usr/bin of mepsis)
then:
ldd /usr/bin/R

This should tell you the libraries you need.
You could copy them to puppy then.
Like this you had R working in Puppy without "chrooting".
But apart from the libraries, R might need other files, for example pictures from /usr/share
Those you could find by examining the different folders.
It helps to set the filemanager to sort files by "modification time", so that you will see newest files first (if you just installed R with synaptic).

But you see, that is some "fiddling", so it isjust nice you have a working solution now with chroot :)

Puppy2 will have a solution even better than chroot :P

Mark

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#3 Post by Lobster »

That looks very nice - now all we need is a dot pup?

Anyone? 8)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Owl
Posts: 64
Joined: Sat 24 Dec 2005, 15:35
Location: Kirchroa, the Netherlands

#4 Post by Owl »

MU wrote:fine.
Now you could run
which R
to find out where it is located (for example in /usr/bin of mepsis)
then:
ldd /usr/bin/R

This should tell you the libraries you need.
You could copy them to puppy then.
Puppy2 will have a solution even better than chroot :P

Mark
Hi,

I did all that but I received a curious message: not a dynamic executable.

So I got kinda stuck here.

But thanks for following up !
Also: wondering what puppy2 has to offer !

Greetings,
Owl.
________________________
Soooooooo happy with Puppy !

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#5 Post by Lobster »

An Alpha release (that means it show the features but that does not mean they have been beta tested) will give us an idea - 14 /15 Feb

http://puppylinux.org/wikka/Puppy2

:)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#6 Post by MU »

>not a dynamic executable.

Oh... then R might be a shellscript.
Try to open it with leafpad.
If not, it might be compressed with upx. http://dotpups.de/dotpups/System_Utilities/upx.pup

upx -d /usr/bin/R
would extract it then.

Mark

User avatar
Owl
Posts: 64
Joined: Sat 24 Dec 2005, 15:35
Location: Kirchroa, the Netherlands

#7 Post by Owl »

Hi,

apparently it is a shell script. I have attached the content of the file R in /usr/bin

How do I proceed ?

Owl.
Attachments
R.tar.gz
R - shell script
(2.77 KiB) Downloaded 517 times
________________________
Soooooooo happy with Puppy !

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#8 Post by MU »

That looks simple.
It seems, only these folders are used:
/usr/lib/R
/usr/share/R/

So they might be packed with pupzip, and then uploaded.

I also found the homepage, I will download the Mandrake-RPM and have a look :)
http://www.r-project.org/

Mark

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#9 Post by MU »

Here is a package for Puppy:
http://www.murga.org/~puppy/viewtopic.php?p=37246#37246

But it eats 58 MB in pup001, so the chroot might be a better solution.

Mark

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#10 Post by MU »

double entry, deleted

Post Reply