Skip to main content

About "firstShema - Red Cavas" window

Posted in

Hi folks,

I have Red-R running on Win 7 (64 bit)

On the "firstShema - Red Cavas" window;

1) I can't find "Data Exploration and Visualization" on the left column

2) There is a big "X" on the "Read Files" on the right column. Clicking it starts another window saying "A widget failed to load this was put in it's place"

Pls advise how to fix the problem. TIA

B.R.
satimis

Hi Anup,

Thanks for your advice.

I installed Red-R on both Win 7 and Ubuntu 10.04 respectively on the package download from that website

B.R.
satimis

Hi Kyle,

To avoid further confusion I'll continue this thread reporting problems encountered solely on Red-R running on Ubuntu 10.04 (Linux). I won't uninstall the package unless I can't fix the problem here.

I'll create a new VM (guest) on the Oracle VirtualBox (VBox) running MS Win 7 (64 bit) for testing R and Red-R. Also I'll create a new thread reporting the steps on installing R and Red-R as well as problem encountered, if any. The version of Red-R to be installed will be on;


Red-R-1.75-Dev-2010.08.17.r881.exe

See you there on the new posting later.

Let me continue testing Red-R on Ubuntu 10.04

Red-R Canvas
-> Help

Type: compiled: Revision:860: Build Time 2010.07.13

$ sudo find / -name blank -type d
/home/satimis/RedR/usr/lib/python2.6/dist-packages/Red-R/libraries/blank

$ ls -l /home/satimis/RedR/usr/lib/python2.6/dist-packages/Red-R/libraries/blank/
total 32
drwxr-xr-x 3 satimis satimis 4096 2010-07-16 05:33 help
drwxr-xr-x 3 satimis satimis 4096 2010-07-16 05:33 icons
-rw-r--r-- 1 satimis satimis 56 2010-07-16 05:33 __init__.py
-rw-r--r-- 1 satimis satimis 564 2010-07-16 05:33 package.xml
drwxr-xr-x 3 satimis satimis 4096 2010-07-16 05:33 qtWidgets
drwxr-xr-x 3 satimis satimis 4096 2010-07-22 02:55 signalClasses
drwxr-xr-x 3 satimis satimis 4096 2010-07-16 05:33 templates
drwxr-xr-x 3 satimis satimis 4096 2010-08-19 00:52 widgets

The "blank" foldder/directory is there.

$ locate RedRdata.py
No printout

RedRdata.py can't be found.

$ ls -l /home/satimis/RedR/usr/lib/python2.6/dist-packages/Red-R/libraries/blank/widgets/
total 140
-rw-r--r-- 1 satimis satimis 1565 2010-07-22 02:55 RedRattributes.py
-rw-r--r-- 1 root root 2652 2010-08-19 00:52 RedRattributes.pyc
-rw-r--r-- 1 satimis satimis 1448 2010-07-22 02:55 RedRcorrplot.py
-rw-r--r-- 1 root root 2545 2010-08-19 00:52 RedRcorrplot.pyc
-rw-r--r-- 1 satimis satimis 2408 2010-07-22 02:55 RedRfft.py
-rw-r--r-- 1 root root 2925 2010-08-19 00:52 RedRfft.pyc
-rw-r--r-- 1 satimis satimis 3670 2010-07-22 02:55 RedRfisher_test.py
-rw-r--r-- 1 root root 4376 2010-08-19 00:52 RedRfisher_test.pyc
-rw-r--r-- 1 satimis satimis 2479 2010-07-22 02:55 RedRks_test.py
-rw-r--r-- 1 root root 3604 2010-08-19 00:52 RedRks_test.pyc
-rw-r--r-- 1 satimis satimis 2500 2010-07-22 02:55 RedRpamr_cv.py
-rw-r--r-- 1 root root 3271 2010-08-19 00:52 RedRpamr_cv.pyc
-rw-r--r-- 1 satimis satimis 2586 2010-07-22 02:55 RedRpamr_fdr.py
-rw-r--r-- 1 root root 3320 2010-08-19 00:52 RedRpamr_fdr.pyc
-rw-r--r-- 1 satimis satimis 3339 2010-07-22 02:55 RedRpamr_listgenes.py
-rw-r--r-- 1 root root 4200 2010-08-19 00:52 RedRpamr_listgenes.pyc
-rw-r--r-- 1 satimis satimis 2366 2010-07-22 02:55 RedRpamr_train.py
-rw-r--r-- 1 root root 3073 2010-08-19 00:52 RedRpamr_train.pyc
-rw-r--r-- 1 satimis satimis 1476 2010-07-22 02:55 RedRplot_mvr.py
-rw-r--r-- 1 root root 2599 2010-08-19 00:52 RedRplot_mvr.pyc
-rw-r--r-- 1 satimis satimis 1709 2010-07-22 02:55 RedRplot_mvrVal.py
-rw-r--r-- 1 root root 2794 2010-08-19 00:52 RedRplot_mvrVal.pyc
-rw-r--r-- 1 satimis satimis 3777 2010-07-22 02:55 RedRplsr.py
-rw-r--r-- 1 root root 3811 2010-08-19 00:52 RedRplsr.pyc
-rw-r--r-- 1 satimis satimis 4320 2010-07-22 02:55 RedRreadShapePoly.py
-rw-r--r-- 1 root root 3974 2010-08-19 00:52 RedRreadShapePoly.pyc
-rw-r--r-- 1 satimis satimis 2021 2010-07-22 02:55 RedRRMSEP.py
-rw-r--r-- 1 root root 2703 2010-08-19 00:52 RedRRMSEP.pyc
-rw-r--r-- 1 satimis satimis 1991 2010-07-22 02:55 RedRslot.py
-rw-r--r-- 1 root root 2690 2010-08-19 00:52 RedRslot.pyc
-rw-r--r-- 1 satimis satimis 3336 2010-07-22 02:55 RedRvar_test.py
-rw-r--r-- 1 root root 3949 2010-08-19 00:52 RedRvar_test.pyc

Can I create RedRdata? If YES, please advise me the content and the owner as well as permission? TIA

B.R.
satimis

satimas,

The most up-to-date installers can always be found at https://red-r.org/downloads

Anup

Hi satimis,

No the downloads are in

I should have been more specific.

Thanks
Kyle

Hi Kyle,

Whether you meant;

r-orange - Revision 885: /trunk
http://r-orange.googlecode.com/svn/trunk/

r-orange - Revision 885: /trunk
* ..
* Examples/
* Red-R-Installer-Non-Development.nsi
* __init__.py
* canvas/
* libraries/
* licence.txt
* red-snapshot-installer-Red-R-only-2.nsi
* setup.py
* uninst.exe
* version.tpl

There is no package?

Whether follow;
http://r-orange.googlecode.com/svn/trunk/setup.py

to proceed? TIA

iris.txt is there

B.R.
satimis

for Win7 you are right just use the uninstaller.

that removes Red-R, to remove python use the python uninstaller if you want (or just keep python it's a really nice program).

for Ubintu.

Red-R should have been installed in the python/dist-packages/Red-R directory. Just delete this and Red-R is gone. You will still have the settings directory in your users folder for any settings that you have. You can remove this also if you want.

An updated installer is available on in the downloads section. The highest r should be working (we've tested on a few machines) r881 I think is the right number.

Your problem with blank won't exist on the Ubuntu version if you installed that using the Red-R.zip file.

I think you also made a comment about not liking how Red-R looks in Ubuntu. You can change the appearance theme in the canvas options dialog (options->canvas options)

Thanks
Kyle

Hi Kyle,

I prefer uninstall Red-R 1.75. and reinstall the it rather than hunting around for solution on problems encountered.

I shall perform following steps to uninstall Red-R 1.75

1)
On win7

Start -> All Programs -> Red-R -> Red-R1.75
click "Uninstall Red-R

If I'm wrong please advise me. Thanks

2)
On Ubuntu 10.04

$ sudo find / -name R -type d (d=folder/directory)
/usr/local/lib/R
/usr/share/R
/usr/share/R/share/R
/usr/share/R/share/perl/R
/usr/lib/R
/usr/lib/R/library/graphics/R
/usr/lib/R/library/stats4/R
/usr/lib/R/library/tools/R
/usr/lib/R/library/KernSmooth/R
/usr/lib/R/library/Matrix/R
/usr/lib/R/library/lattice/R
/usr/lib/R/library/utils/R
/usr/lib/R/library/boot/R
/usr/lib/R/library/splines/R
/usr/lib/R/library/nlme/R
/usr/lib/R/library/methods/R
/usr/lib/R/library/spatial/R
/usr/lib/R/library/foreign/R
/usr/lib/R/library/grDevices/R
/usr/lib/R/library/cluster/R
/usr/lib/R/library/codetools/R
/usr/lib/R/library/base/R
/usr/lib/R/library/tcltk/R
/usr/lib/R/library/mgcv/R
/usr/lib/R/library/nnet/R
/usr/lib/R/library/rpart/R
/usr/lib/R/library/datasets/R
/usr/lib/R/library/MASS/R
/usr/lib/R/library/class/R
/usr/lib/R/library/survival/R
/usr/lib/R/library/stats/R
/usr/lib/R/library/grid/R
/usr/lib/R/site-library/lmtest/R
/usr/lib/R/site-library/Hmisc/R
/usr/lib/R/site-library/relimp/R
/usr/lib/R/site-library/rggobi/R
/usr/lib/R/site-library/sm/R
/usr/lib/R/site-library/mvtnorm/R
/usr/lib/R/site-library/car/R
/usr/lib/R/site-library/effects/R
/usr/lib/R/site-library/qtl/R
/usr/lib/R/site-library/chron/R
/usr/lib/R/site-library/RGtk2/R
/usr/lib/R/site-library/colorspace/R
/usr/lib/R/site-library/strucchange/R
/usr/lib/R/site-library/abind/R
/usr/lib/R/site-library/sandwich/R
/usr/lib/R/site-library/plotrix/R
/usr/lib/R/site-library/multcomp/R
/usr/lib/R/site-library/Rcmdr/R
/usr/lib/R/site-library/rgl/R
/usr/lib/R/site-library/zoo/R
/etc/R
/home/satimis/R
/home/satimis/R/x86_64-pc-linux-gnu-library/2.10/biglm/R
/home/satimis/R/x86_64-pc-linux-gnu-library/2.10/aplpack/R
/home/satimis/R/x86_64-pc-linux-gnu-library/2.10/RUnit/R
/home/satimis/R/x86_64-pc-linux-gnu-library/2.10/RUnit/share/R
/home/satimis/R/x86_64-pc-linux-gnu-library/2.10/RSQLite/R
/home/satimis/R/x86_64-pc-linux-gnu-library/2.10/leaps/R
/home/satimis/R/x86_64-pc-linux-gnu-library/2.10/DBI/R

$ ls /etc/R/
ldpaths Makeconf Renviron Renviron.site repositories Rprofile.site

I have no idea how to uninstall Red-R on Ubuntu 10.04. Could you please shed me some light?

Besides where can I download Red-R 2.0 as demonstrated on YouTube
Red-R 2.0 First Schema

TIA

B.R.
satimis

OH! You don't have the blank directory!

There is a problem in our test installer where blank isn't loaded. You might have gotten that installer by mistake somehow.

You can make this without reinstalling red-r if you just copy one of the current packages (base for example) and then go through all of the directories and delete the .py and .pyc files that aren't __init__ and rename the package 'blank' that will make a blank file for you.

The code isn't generated until you press 'generate code'.

Kyle

Hi Kyle,

Win7

On WidgetMaker

Function Info
Package:
[base] -> click [Load Package] (no response)

On
Code (tab)
No text displayed

Again on
Function Info (tab)
type data on the box under Function Name:
-> click [Parse Function]
A table with info displayed on the main screen of WidgetMaker

On
GUI Args [clear everything and type 'dataName'

[tick] 'Allow Output'
-> click [Accep Inputs] -> click [Generate Code] -> click [Launch Widget]
(no visible response)

> Open the RedRdata.py file in your favorite text editor
> (the file is in #Red-R Directory#/libraries/blank/widgets/RedRdata.py)

Start 'Notedad'
Open File
C:\Program Files(x86)\Red-R\Red-R-1.75\libraries
3 folders found
base
plotting
stats

What did you mean 'blank' ?

> in the section on making the signal container for this particular widget you would
> need to change the section;

> newData = signals.RDataFrame.RDataFrame(data = self.Rvariables['data'], ...

> to

> newData = signals.RDataFrame.RDataFrame(data = str(self.RFunctionParamdataName_lineEdit.text()),
> ...

On which window ?

Sorry I'm a little bid confused.

B.R.
satimis

Oh,

in the section on making the signal container for this particular widget you would need to change the section;

newData = signals.RDataFrame.RDataFrame(data = self.Rvariables['data'], ...

to

newData = signals.RDataFrame.RDataFrame(data = str(self.RFunctionParamdataName_lineEdit.text()), ...

thats because the command data(iris) just loads the iris data into R and it is named iris. to work with iris you would just use the data name (iris). For that reason the widget should just send the data name as opposed to the output of data(iris), which is nothing.

Thanks for posting about this. Hopefully this helps. A much easier way of doing it would be to use the RExecutor and just send the iris data out;

type 'iris' in the line edit and press 'Send'.

You will have the output right away and can even use View Data Table to save the output to a text file if you want, then use that to read in the data in Read Files.

Thanks
Kyle

I just tested on mine and as it turns out data is a more complicated function than I thought.

I got it working, you just have to do this.

In the GUI Args line edit clear everything and replace with something like 'dataName'.

Set Allow Output to checked and click Accept Inputs, Generate Code, Launch Widget.

Open the RedRdata.py file in your favorite text editor (the file is in #Red-R Directory#/libraries/blank/widgets/RedRdata.py)

Go down to the commit function and in the section where is says;

string = 'dataName='+str(self.RFunction...

remove the 'dataName=' section which should change to this;

string = str(self.RFunction...

Save the file and reload the Red-R widgets by clicking the reload button (a green and red arrow looping back on itself beside the save button).

Now try RedRdata.

Thanks
Kyle

OK. There isn't any response when you load the package if it is already loaded. You would see a failure if the package didn't load.

If you still have the widget maker up you could see if there is any text in the code section. Perhaps the widget code was incorrect for some reason.

Did you press 'launch widget'? That will save the widget data and reload the widgets for you. I'll try on my machine to make sure that there aren't any errors.

Thanks for tracking this down for us.
Kyle

> First have you tried resizing the widget? The titles might be hidden due to the window size.

The widget can be resized but NOT the buttons. They remains at the same size disregarding the size of the widget.

Type "base" on the box under Package:
-> click "Load Package"
no response

Type "data" on the box under Function Name:
-> click "Parse Function"
Input Type, Required, Signal Class, etc. displayed in the middle of the screen

Follow your steps without much problem until upto;
type RedRdata

It never displayed only;
RedRplot
RedRisa
RedReign
RedRstrsplit
RedRscale
RedRpoints

there.

B.R.
satimis

Sorry,

First have you tried resizing the widget? The titles might be hidden due to the window size.

'base' is the package name. Type that in the first line edit in the upper left corner beside the "load package" button. Then click the "load package" button (redundant for base as this is already loaded but good to do anyway).

'data' is the function name. Type this into the second line edit between 'load package' and 'parse function'. Click 'parse function'.

Now the function is parsed and you should see some information in the table in the middle of the screen.

Everything should default to 'Widget Input' in connection type so just leave all of that alone.

Click the 'Allow Output' box at the bottom, click 'Accept Inputs', click 'Generate Code' (you can then move to the code tab and see the code you made).
Click 'launch widget'.

Move to the canvas and type RedRdata (this is always the format of widgetMaker RedR[functionname]) in the line edit above the toolbar tree view (upper left corner by default). When RedRdata comes up press enter.

Now in RedRdata type 'iris' (may or may not need the quotes). Click 'Commit'.

Connect to View Data Table.

You should see iris data if all goes well.

If you want to write iris to a file go to the advanced options and click save.

Thanks
Kyle

Hi Kyle,

Most the time I was working on Red-R on Ubuntu 10.04 (Linux). I run Red-R on Windows as cross reference. Red-R on Windows looks much better.

Here Red-R on Ubuntu 10.04

Start "Widget Maker" window

-> Widget Maker

Function Info :-
Package: [ ]
[oad Packag] (title on the button can only be read partially)
Function name: [ ]
[arse Functio] (title on the button can only be read partially)
GUI Args [ ]
[ccept Input] (title on the button can only be read partially)
[]Allow Output
[]Show Output
Outpur Class:[RDataFrame v]
[enerate Cod] (title on the button can only be read partially)
[unch Widg] (title on the button can only be read partially)

Documentation
Notes
R code excuted in this (description can only be read partially)
[Help]
[Notes]
[Outpu] (title on the button can only be read partially)
[Print]

> typing 'base' and 'data' into the appropriate fields.
Which fields ?

> Making the data name variable a "Widget Input",
Where ?

TIA

B.R.
satimis

Hi satimis,

Data Explorer is renamed to Row Filtering, it filters data by rows based on column criteria. Class Manager Editor is depricated. It may be introduced later but it was causing confusion with some users, it was mostly as a memory management tool.

For Dummy Widget that is the correct behavior. The widget only has a message in it, the one that you saw about an error in loading. It is hard coded into the widget.

We made dummy widget for this senario:

Person A is doing some work with Red-R and has made some custom widgets for her own R scripts, person A uses these scripts in R and likes how they work in Red-R. But A hasn't gone to the trouble of placing the custom widgets into a package and uploading them to the Red-R repository (which is really easy if you contact me or Anup). So the widgets exist only on A's computer.

A shares a schema with person B. A's schema has these custom widgets in it which don't exist on B's version of Red-R. What is the schema to do when loading?

The solution is that B's Red-R sees that the widget in the schema isn't available to it. B's Red-R puts a dummy widget in place of A's custom widgets and uses it to fill in the schema. B's Red-R also tries to fill in the signals from A's custom widgets so they might be able to connect to other widgets (this can be risky at times, signals from Dummy Widgets may be generic signal classes that don't connect properly to other widgets, don't be surprised if there are errors when connecting).

Now B can see A's schema and perhaps use some of the schema for other things, the data is still there and if A's custom widgets were simply some kind of reshaping or other manipulation that B isn't interested in anyway there is no problem. B can still use A's schema to do other things.

I have tinkered with the idea of making a widget for R data called Data. This would allow any R data to be read into the Red-R schema and sent forward. You could make this yourself by going to widget maker typing 'base' and 'data' into the appropriate fields. Making the data name variable a "Widget Input", and setting the output signal to something like RDataFrame (which I think most R data is in the form of). Click 'Allow Output", click 'Accept Inputs', click 'Generate Code', click 'Launch Widget'. Then wait for Red-R to reload the widgets and move to Prototypes->RedRdata, and type iris (might have to put quotations, not sure) and then connecting the output to something like view data table. Then you have your first widget.

I just haven't done this because Red-R was made for non-expert users who likely don't know about the R data, and likely wouldn't feel like just testing a schema but would rather use live working data they need some analysis for.

Another way of doing this is to use the RExecutor and type iris in the line edit at the top and press 'send'. This will send iris through the data-frame channel of RExecutor. You can do this with any other R data.

Thanks for the post,
Please let me know how the Linux install works.

Kyle

Hi Kyle,

> Oh, the widget with the big X is called a dummy widget. It is loaded when widget loading fails
> so the schema is still intact.

I found the dummy on;

-> R -> Dummy

But there is a big X on it. Clicking it displaying the warning as previously reported.

> This allows people to make custom widgets and use them and still share schemas with others.
> There will be dummy widgets where their custom widgets were but at least you will be able to
> load the schema and may still use the outputs from those widgets.

Whether users can build their own widgets starting on the Dummy? Thanks

Furthermore I have Red-R installed on Win 7 and Ubuntu 10.04 here (both 64 bit) respectively for comparison. They are running as VM (guest) on Orcle VirtualBox (VBox). I'll let you know if there is any problem.

B.R.
satimis

Hi Kyle,

> I've never tested on a 64 bit machine so I don't know if there are some problems that we
> haven't encountered yet.

I think Red-R works on 64 bit machine. Just installed it. Now I start playing around with it.

On "Read Files" can I browse direct on R data files?

e.g.
> data (iris)
> iris
Sepal.Length Sepal.Width Petal.Length Petal.Width Species
1 5.1 3.5 1.4 0.2 setosa
2 4.9 3.0 1.4 0.2 setosa
3 4.7 3.2 1.3 0.2 setosa
4 4.6 3.1 1.5 0.2 setosa
5 5.0 3.6 1.4 0.2 setosa
6 5.4 3.9 1.7 0.4 setosa
.....

I can't browse this data file directly on R. Whether I have to save iris as iris.txt (text file) first? TIA

B.R.
satimis

Hi Anup Parikh,

> 'Data exploration and visualization' has been replaced by plotting.

on -> Plotting
only new items found. Where are those old items?

[R]List Selector
now;
Subsetting -> [R]List Selection (renamed)

Data Explorer
(I can't find this item)

View Data Table
now
-> View Data -> View Data Table

R Viewer
I suppose now;
-> R -> View R Outpu (renamed)

Where is "Class Manager Editor" on -> Data Files ?

TIA

B.R.
satimis

Oh, the widget with the big X is called a dummy widget. It is loaded when widget loading fails so the schema is still intact.

This allows people to make custom widgets and use them and still share schemas with others. There will be dummy widgets where their custom widgets were but at least you will be able to load the schema and may still use the outputs from those widgets.

Thanks for highlighting this feature.

Kyle

Yes, thanks satimis.

The new Fist Schema will be available in the next release. It isn't essential for things to run though so you can still use Red-R and even try to make the schema yourself for practice.

If you have any problems getting things started let us know.

I've never tested on a 64 bit machine so I don't know if there are some problems that we haven't encountered yet.

Thanks
Kyle

Thanks for reporting the error. We have fixed the problems with the first Schema.

Over time we have rearranged the widgets in the list view in the left column. 'Data exploration and visualization' has been replaced by plotting.

Please let us know if you encounter any other problems, and we'll try put out a fix promptly.

Anup