R - statistics package and scripting language

Mathematical tools, physics simulators, CAD, CNC, etc.
Message
Author
emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

the small world full

#41 Post by emil »

I noticed the following :!: :
fresh, full install of Lupu 520
Are you really using a full install? - you know you cant use sfs files under full install with the Bootmanager!

You have to extract the contents out of the sfs and copy it directly to the partition. Either use a frugal install, or:

Code: Select all

2. Click on the devx_xxx.sfs in a ROX-Filer window to mount it.
3. Open a terminal in the mounted directory.
6. # cp -a --remove-destination ./* /mnt/hda2/
7. # sync
8. Close the terminal.
9. Click on the devx_xxx.sfs file to unmount it
instead of /mnt/hda2/ you have to write the name of the root partition of your full install (like given in GRUB)

taken from http://www.puppylinux.com/hard-puppy.htm

Sorry I have to read more carefully what people tell me ... Could have told you that hours before!

Good Luck!
emil

PS: I use frugal install!

Puppyt
Posts: 907
Joined: Fri 09 May 2008, 23:37
Location: Moorooka, Queensland
Contact:

#42 Post by Puppyt »

DOH! :oops:

I forgot completely about that little nuance - normally I use frugal religiously, but in this case I wanted to dedicate a partition to a puppy "project".

Thanks! Will review that again in a few hours after sleeeep (nearly 4am here!)



(Off-screen: sound of head hitting desk. Several times. With increasing ferocity...)
Search engines for Puppy
[url]http://puppylinux.us/psearch.html[/url]; [url=https://cse.google.com/cse?cx=015995643981050743583%3Aabvzbibgzxo&q=#gsc.tab=0]Google Custom Search[/url]; [url]http://wellminded.net63.net/[/url] others TBA...

emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

#43 Post by emil »

Hey PuppyT, take it easy :D and good night!

I found frugal install much better suited for development (just have big enough savefile, like 1,5 GB) and keep sources and data in the /mnt/home range.

It is much more flexible and save:
1) main sfs is readonly
2) you can make backups of your savefiles to restore a "healthy state"
3) your installations and testinstalls keep small

emil

Puppyt
Posts: 907
Joined: Fri 09 May 2008, 23:37
Location: Moorooka, Queensland
Contact:

#44 Post by Puppyt »

It's ALIVE!

Thanks for taking the trouble spoon-feeding me through that installation, emil - manually deleted my FULL installation directories (leaving your R.SFS behind) and doing a FRUGAL install. Bootmanager spotted the SFS immediately on startup [EDIT: I had it named R-Rcmdr-2.12.1_520.sfs], and away we go...
I note that you now have the 'R' menu entry straight under the 'Business' category, and no 'R Commander'. For my intended audience - needing as little R syntax as possible - I contrived to have R-Commander load automatically, following the directions here http://socserv.mcmaster.ca/jfox/Misc/Rc ... notes.html and modifying the Rprofile file in /opt/R-2.12.1/lib/R/base/R/Rprofile. Now R Commander loads nearly instantly. YAY! 8)

I reckon if (anyone) wanted to really showcase 'R' in puppy you could also install JGUIR (but pre-installing the JRE pet), PMG and some of the other GUI's. RKWard might run under the minimum KDE environment PET dejan555 posted somewheres - although I think that was for Puppy4. Of course, providing a Firefox or Seamonkey with a string of R tutorials and other resources bookmarked would also be helpful for a "Beginners R-puppy". For a more integrated learning tool I would consider also adding Zotero (now it also runs in SeaMonkey - Yipeee!) with a library of links and articles included with the puplet.

But now I'm way off my brief. Finalising this little "Ethology" puplet project I'm loading the ImageJ pet (http://www.murga-linux.com/puppy/viewto ... 184#319184) and the latest CowLog (http://mpastell.com/cowlog/) for image and video analysis and their integrated R packages from CRAN. Nuff play - back to work...

Thanks yet again, emil!


P.S. I think I'll scrap the idea of a "Perpetual Noob" t-shirt and just have it tattoo'd on my forehead - around the desk splinters.
Search engines for Puppy
[url]http://puppylinux.us/psearch.html[/url]; [url=https://cse.google.com/cse?cx=015995643981050743583%3Aabvzbibgzxo&q=#gsc.tab=0]Google Custom Search[/url]; [url]http://wellminded.net63.net/[/url] others TBA...

Puppyt
Posts: 907
Joined: Fri 09 May 2008, 23:37
Location: Moorooka, Queensland
Contact:

#45 Post by Puppyt »

Cheers again emil-

I've been trying to remaster Lupu 520 with extensions to your great R-Rcmdr SFS. I've included the CowLog deb (listed previously in thread) and had to download the KDE Kommander and associated dependencies from Ubuntu, and it works seamlessly. (In my remaster I've also included the package databases for Ubuntu-lucid-main and -multiverse.) R is hooked up to start RCmdr automatically, and I've updated various R packages, including 'Animal' for CowLog.
I've then run into problems trying to install ImageJ http://www.murga-linux.com/puppy/viewtopic.php?p=319184 and the R packages 'RImageJ' and 'rJava'. ImageJ works but the packages can't seem to link properly with java despite (near-)successful use of "R CMD javareconfig" in terminal. As you highlight in your explanation on another thread here http://www.murga-linux.com/puppy/viewto ... d23b7128fd - Puppy uses a different Java installation path in its official pets and sfs. Perhaps that is where I am having problems, and will try tallthom's approach with a direct download and install from Oracle. I bet that would help with remaster problems anyway. I'll email again if it works for the R packages.
Couldn't find your java pet for traditional savefile installs, I guess you removed it?

Any thoughts on the matter would be greatly received...
Search engines for Puppy
[url]http://puppylinux.us/psearch.html[/url]; [url=https://cse.google.com/cse?cx=015995643981050743583%3Aabvzbibgzxo&q=#gsc.tab=0]Google Custom Search[/url]; [url]http://wellminded.net63.net/[/url] others TBA...

emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

Java

#46 Post by emil »

I think the official Java installs also to /mnt/home

It is possible that some link is broken but please try
http://sage.math.washington.edu/home/em ... 6.0_22.pet
Sounds like great stuff :D
emil

Puppyt
Posts: 907
Joined: Fri 09 May 2008, 23:37
Location: Moorooka, Queensland
Contact:

#47 Post by Puppyt »

Thanks again, emil!
I've downloaded and will try again with a java remaster. And research manual remastery shortly if that flunks. The puplet is rather large - >700Mb R + Rcmdr + java + firefox + KDE (+CowLog + ImageJ) which surprised me a little. (Just goes to show the genius in getting the base model Puppies so small.) Will look at streamlining too, re your earlier request,

Cheers!
Search engines for Puppy
[url]http://puppylinux.us/psearch.html[/url]; [url=https://cse.google.com/cse?cx=015995643981050743583%3Aabvzbibgzxo&q=#gsc.tab=0]Google Custom Search[/url]; [url]http://wellminded.net63.net/[/url] others TBA...

Puppyt
Posts: 907
Joined: Fri 09 May 2008, 23:37
Location: Moorooka, Queensland
Contact:

#48 Post by Puppyt »

:D

emil - your pet certainly did the trick! Java (jre 1.6.0_22) is now 'embedded' in the remastered lupu_520.sfs, and together with your R+Rcmdr SFS (or pets - I tested it both ways) AND using pa_mcclamrock's "Remasterpup3" a puplet can be easily constructed running R, JRE and ImageJ straight from the live-CD.

I still ran into trouble with the java frontends for R (e.g., rJava and RImageJ packages) - but it turns out I 'just' needed the SDK (java_ee_sdk-5_01-linux.bin, 134MB - and from what I read from non-Puppy linux forums the SDK is needed to properly install JGuiR). Newbie question - from what I understand I shouldn't need to install JDK and the JRE pet - is that correct? I can't spend more time for a few weeks on testing that and getting R and ImageJ properly coordinated - it's more important to actually use the new CowLog/KDE/Rcmdr toolbox.

One final noob question if you wouldn't mind: I prefer to use wBAR for desktop organisation but can't work out what file to link to the R 'plug-in' that actually starts R - just like the existing menubar. Could you give me a clue for that please - I hope I don't have to write a startscript somewheres, although that would be the alternative,

3 Cheers!
Search engines for Puppy
[url]http://puppylinux.us/psearch.html[/url]; [url=https://cse.google.com/cse?cx=015995643981050743583%3Aabvzbibgzxo&q=#gsc.tab=0]Google Custom Search[/url]; [url]http://wellminded.net63.net/[/url] others TBA...

emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

#49 Post by emil »

Hi Puppyt,

nice to hear it's going well :D !
I am sorry, I cant give advice on SDK/Java. Thats out of my comfort zone!
I never used those.

I also have never used wbar, but after googling i found this thread
http://www.murga-linux.com/puppy/viewtopic.php?p=127662
and it seems to me that the contents of the wbar is stored in the hidden file /root/.wbar
it should have a fairly obvious syntax. Compare it to the file
/usr/share/applications/R.desktop
it should be possible to generate an entry for R in your wbar that way (with texteditor)

good luck and success for your work withanimal research, and it would be perfect if you could keep us posted on any experience with your statistic pupplet!
8) emil

Puppyt
Posts: 907
Joined: Fri 09 May 2008, 23:37
Location: Moorooka, Queensland
Contact:

#50 Post by Puppyt »

G'day again emil -

Strange - I posted a quick note yesterday but it seems to have got lost in the ether...
In short - I've got Lupu 520 remastered with your R/Rcmdr SFS and java pet, with ImageJ, Kommander and CowLog all working happily. I dipped into the Ubuntu repositories quite a bit for the Kommander and KDE dependencies. The iso came in at about 480 MB with Firefox pre-configured with Zotero etc.
The Java SDK - needed for various R packages and a foundation for JGuiR - was definitely a bridge too far for a meddling muddler like myself, so no go there.
I even wrote a startscript so that CowLog can be run from a desktop icon or wBar. I had R listed in the wBar but it broke - often - I think the main issue is with the official wBar_1.3.3_setup (?) pet and that has attracted concern elsewhere in the Puppy forum recently. But you're right, a manual edit of the wBar config files should be the way to move forward with that particular decoration.

Have you come across this R-gui before http://www.red-r.org/? I haven't tried it yet, and it looks extremely slick for an open source project. I wonder whether it might be an alternative to RCmdr for budding statisticians?

Many Thanks :)
Search engines for Puppy
[url]http://puppylinux.us/psearch.html[/url]; [url=https://cse.google.com/cse?cx=015995643981050743583%3Aabvzbibgzxo&q=#gsc.tab=0]Google Custom Search[/url]; [url]http://wellminded.net63.net/[/url] others TBA...

Puppyt
Posts: 907
Joined: Fri 09 May 2008, 23:37
Location: Moorooka, Queensland
Contact:

#51 Post by Puppyt »

THIS IS NOT A URGENT REQUEST otherwise I would start a new thread in the 'Pets' section of the forum. More of a wistful wish...

:oops: OK I did it again - a quick google suggested that RKWARD would be a useful inclusion with RCmdr, for an R-learner's puplet. Forgot to mention earlier that I'm using KDE 3.5.10 for stability. (AFAIK - I'm only new to KDE too.)
Not finding an Rkward deb in PPM with Ubuntu-main and ubuntu-universe, I downloaded rkward_0.4.9c-1_lenny_386.deb from Sourceforge and a dependency check after install showed "all clear". All went extra smoothly up to this point - but a menu entry couldn't be created and all my other attempts to start Rkward have failed. Glancing through the various scripts it seems that the install didn't go perfectly as it is looking for R in the wrong place.

Would anyone other than emil care to have a shot at compiling a Rkward pet (for either KDE 3 or KDE 4)? There's been a few times on this thread emil has been trying to get back to the real world - but we just keep dragging him back...
Search engines for Puppy
[url]http://puppylinux.us/psearch.html[/url]; [url=https://cse.google.com/cse?cx=015995643981050743583%3Aabvzbibgzxo&q=#gsc.tab=0]Google Custom Search[/url]; [url]http://wellminded.net63.net/[/url] others TBA...

emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

#52 Post by emil »

Hi PuppyT,
thanks, Realworld is mostly fine, and I can't feel any drag beside my own.
I looked at the 2 other Guis you mentioned. I won't mess with them, since they need Qt and RKWard also needs KDE.

About the questions with the Java development Kit. You dont need both, JDK or JRE is enough. If you install the "bundle package" for a possible remaster I would suggest the /opt/ directory (And quite some space in the save file, I recall like 300 MB?) Then you have the JDK executables in /opt/jdk-xxxxx/bin.
In order to work properly you have to add that directory to your path. You can test it manually in console with

Code: Select all

export PATH=/opt/jdk-xxx/bin:$PATH
and then type java
If you want to permanently include that path in your remaster you can edit the textfile etc/profile in line 3
8) best
emil

Puppyt
Posts: 907
Joined: Fri 09 May 2008, 23:37
Location: Moorooka, Queensland
Contact:

#53 Post by Puppyt »

Most Appreciated! Thanks, emil - will let you know if things go astray with your SFS and pet, but it's knitted together very well indeed in Lupu520. It even works without changing the SFS name as I posted earlier.
Cheers!
Search engines for Puppy
[url]http://puppylinux.us/psearch.html[/url]; [url=https://cse.google.com/cse?cx=015995643981050743583%3Aabvzbibgzxo&q=#gsc.tab=0]Google Custom Search[/url]; [url]http://wellminded.net63.net/[/url] others TBA...

emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

Rkward

#54 Post by emil »

PuppyT, just one thought,
if you checked the installscripts, why don't you try to add a symlink at the place the scripts are lookin for R?

Puppyt
Posts: 907
Joined: Fri 09 May 2008, 23:37
Location: Moorooka, Queensland
Contact:

Re: Rkward

#55 Post by Puppyt »

emil wrote:PuppyT, just one thought,
if you checked the installscripts, why don't you try to add a symlink at the place the scripts are lookin for R?
Apologies for my late response emil, and thank you for the suggestion. I'm afraid that symlinks are waaaaay out of my league. In fact, practically anything object oriented starts to mess with my head. I regret that I've had to leave it for now due to sickness and work commitments, but I'll be keeping tabs with this thread and other R-puppy developments as they might emerge.
Do you have plans to retro-fit your pets/sfs into Puppy4? Is there an easy way a newbie could convert the SFS reliably to do that without YOU having to do the hard yards again?
Back to bed for me - at 4pm (groan)
Search engines for Puppy
[url]http://puppylinux.us/psearch.html[/url]; [url=https://cse.google.com/cse?cx=015995643981050743583%3Aabvzbibgzxo&q=#gsc.tab=0]Google Custom Search[/url]; [url]http://wellminded.net63.net/[/url] others TBA...

emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

#56 Post by emil »

Hi PuppyT,
sorry to hear that you are ill :( - get well soon!
About symlinks - actually there is not so much object orientation in it, basically those are just signposts that lead to the right file, its entirelly a filesystem technique.

So example: The rkward installer is looking for /usr/bin/R but you have R installed in /opt/R-2.12.1/bin/R. Then you can place a Symlink like

Code: Select all

ln -s /opt/R-2.12.1/bin/R /usr/bin/R
Optionally you can also use the Rox Filemanger to create such a link.
If the rkward script looks for R in /usr/bin it finds the link (signpost to /opt/..), there it finds R and voila, the script is happy and hopefully it works.
If this is practical depends if the install script is readable and you can identify the necessary symlinks (also their number). Another option is to add the appropriate R directories to your paths.

About R for Puppy 4. I don't know if it works, but if not than it is easiest in my opinion to recompile following the cookbook in this thread. :?: Maybe it is also necessary to install a new version of iconv in Puppy 4 (was an additional dependency in the puppy 4 version las year).

So I wish you success with your work and good health,
best to Australia from Austria

emil

flan
Posts: 1
Joined: Sun 06 Mar 2011, 09:19

#57 Post by flan »

PuppyT and Emil,

I'm a public health student who has a need for learning statistical modeling. I realize that folks like you don't get enough praise for your contributions. Thank you both for your time and energy! PuppyT, your vision of an R suite for students is beautiful! With only a very rudimentary understanding myself, I can only cheer on the sidelines here. As a relative newbie who has dabbled with a number of R GUIs, I found Rkward to be the most compelling; that would be so cool if rkward was part of your pupplet!
Please do post on here whenever your R statistical pupplet get unleashed.

Thanks again, Flan

Puppyt
Posts: 907
Joined: Fri 09 May 2008, 23:37
Location: Moorooka, Queensland
Contact:

#58 Post by Puppyt »

Cheers Flan -
Welcome to the Kennels!
I'm certain that emil has given me the recipe in his earlier messages for getting Rkward running in this little project - I simply haven't been able to get back to it with Uni and work pressures of late. I'll give it a red-hot crack again this weekend and let you know how it goes. Perhaps I could put it on a server somewhere for limited downloads - I wouldn't be game to 'release' it as a puplet. Won't have the Zotero stats help files, bookmarks, tutorials etc for beginners in Statistics unfortunately. That aspect is still a work in progress. Many Thanks for your interest, but I'm really just riding on emil's coat-tails and his inspiration. :)
Search engines for Puppy
[url]http://puppylinux.us/psearch.html[/url]; [url=https://cse.google.com/cse?cx=015995643981050743583%3Aabvzbibgzxo&q=#gsc.tab=0]Google Custom Search[/url]; [url]http://wellminded.net63.net/[/url] others TBA...

Puppyt
Posts: 907
Joined: Fri 09 May 2008, 23:37
Location: Moorooka, Queensland
Contact:

#59 Post by Puppyt »

No dice yet with RKWard-
First I used hondasid's Barebones 5.01 (http://www.murga-linux.com/puppy/viewtopic.php?t=64480) in the interests of getting a basic "R-puppy" base. emil's R+Rcmdr SFS worked, and I installed dejan555's minimal KDE libraries without problem (3.5.9: http://murga-linux.com/puppy/viewtopic.php?t=41115). I loaded kommander_3.5.10-0ubuntu1_i386.deb from a website archive somewhere and it worked, as did the CowLog_1.0-1.deb. However, no amount of symlinking (and rkward.bin tweaking) got me anywhere other than a brief flash of the 'RKWard' title dialogue before it dropped out.
Then I did the same with my larger working project (Lucid 520, without dejan's KDE but with 4.something KDE dependencies automatically downloaded from the Ubuntu repositories) and had the same result with attempting RKWard.
Finally I attempted dejan's KDPUP-lite puplet (puppy 484: http://www.murga-linux.com/puppy/viewtopic.php?t=55301) in case my KDE environment was impaired in some way (all dependency checks were OK for all packages) and couldn't get emils' Puppy5-compiled R+RCmdr SFS or pets to load properly. (emil - I forgot to try the updated iconv)
Sorry Flan - I'll have to make a formal request if anyone - with actual programming expertise, no numbkins like myself - could manage to construct a working RKWard pet for Puppy5 :(
Search engines for Puppy
[url]http://puppylinux.us/psearch.html[/url]; [url=https://cse.google.com/cse?cx=015995643981050743583%3Aabvzbibgzxo&q=#gsc.tab=0]Google Custom Search[/url]; [url]http://wellminded.net63.net/[/url] others TBA...

emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

#60 Post by emil »

Hello all,
unfortunatly I cant help much in getting rkward to work (have to run my business, so no time). But I noticed that rkward expects R to be compiled with "shared libraries enabled"
see http://rkward.sourceforge.net

I haven't compiled R explicitly with this option, so it might be that this is part of the problem.
There should be a library libR.so somewhere.

PuppyT, your approaches look very promising, if libR.so is missing, try to recompile R with the option --enable-R-shlib.

just my 2 cents, good luck - I am very happy to see this forum section is alive :)
emil

Post Reply