r-node:r-node.git
7 years agoTry a different approach to getting Nodejs to find
Jamie Love [Wed, 16 Feb 2011 10:11:38 +0000 (23:11 +1300)]
Try a different approach to getting Nodejs to find
the necessary library files for a few handlers.

7 years agoHopefully fix issue which is stopping the server from running
Jamie Love [Mon, 14 Feb 2011 09:56:45 +0000 (22:56 +1300)]
Hopefully fix issue which is stopping the server from running
for some users due to soft links for files in the deploy directory.

7 years agoSmall change to work with latest NodeJS.
Jamie Love [Fri, 11 Feb 2011 09:06:10 +0000 (22:06 +1300)]
Small change to work with latest NodeJS.

7 years agoIssue 35: Support global R scripts and per-user R scripts.
Jamie Love [Sat, 16 Oct 2010 10:30:03 +0000 (23:30 +1300)]
Issue 35: Support global R scripts and per-user R scripts.

The system now supports global R scripts, to be run after the
successful connection to R. Each connection will have all listed
R scripts run.

Per-user R scripts are also supported. This allows scripts specific
for a user to be run after that user logs in. Look in the example
configuration file for more information.

7 years agoIssue #40 rerun query after user re-logs in.
Jamie Love [Mon, 4 Oct 2010 09:35:22 +0000 (22:35 +1300)]
Issue #40 rerun query after user re-logs in.

7 years agoIssue #40 Support re-logging in after failure.
Jamie Love [Mon, 4 Oct 2010 09:12:00 +0000 (22:12 +1300)]
Issue #40 Support re-logging in after failure.

7 years agoIssue #38 - Avoid needing a sid with the pager.
Jamie Love [Mon, 4 Oct 2010 08:53:22 +0000 (21:53 +1300)]
Issue #38 - Avoid needing a sid with the pager.

This allows the graphics to be shown again, as well as a bunch of
other things that rely on the pager to work again.

7 years agoIssue 37: Be careful about deleting Rconnections.
Jamie Love [Thu, 30 Sep 2010 09:38:13 +0000 (22:38 +1300)]
Issue 37: Be careful about deleting Rconnections.

Also, fix a variety of issues that stopped the basic authentication
from working correctly.

7 years agoSupport barplot as a graph type.
Jamie Love [Tue, 28 Sep 2010 08:27:40 +0000 (21:27 +1300)]
Support barplot as a graph type.

8 years agoUpdate TODO file.
Jamie Love [Sat, 26 Jun 2010 23:05:57 +0000 (11:05 +1200)]
Update TODO file.

8 years agoUse 'utf8' for the encoding of readFile in all situations.
Jamie Love [Sat, 26 Jun 2010 23:03:40 +0000 (11:03 +1200)]
Use 'utf8' for the encoding of readFile in all situations.

8 years agoFix bug that was stopping r-node working with latest nodejs.
Jamie Love [Sat, 26 Jun 2010 22:58:46 +0000 (10:58 +1200)]
Fix bug that was stopping r-node working with latest nodejs.

It appears that the readFile function requires a second parameter
for it to appear as text in the result.

8 years agoFor single R server situations, use the global SID.
Jamie Love [Mon, 31 May 2010 09:13:56 +0000 (21:13 +1200)]
For single R server situations, use the global SID.

8 years agoSupport R v2.10 help.
Jamie Love [Sun, 30 May 2010 10:41:15 +0000 (22:41 +1200)]
Support R v2.10 help.

R v2.10 removed the pre-generated HTML help as a standard component
of R, and instead moved the HTML help to a standalone server.

This patch implements support for this help server, once it is
started up as an entirely separate R instance (i.e. not from
R-Node).

I tried both starting up the R http help server from R via Rserve,
and also via a normal spawned R instance, but in both cases the R
http server would never respond to any requests. So the R help
server now needs to be a separate R instance, by default running
on port 22900.

8 years agoDon't pretty print pager information.
Jamie Love [Wed, 26 May 2010 09:36:08 +0000 (21:36 +1200)]
Don't pretty print pager information.

8 years agoFix a variety of small things relating to the R-Intro doc.
Jamie Love [Mon, 24 May 2010 08:13:28 +0000 (20:13 +1200)]
Fix a variety of small things relating to the R-Intro doc.

Basically make a whole bunch of small changes that allow most
of the R-Intro book to run.

8 years agoSupport all R syntax.
Jamie Love [Sun, 23 May 2010 01:47:39 +0000 (13:47 +1200)]
Support all R syntax.

If we can't parse the R command client side, we just send it through
to the server side, and let the server look at it.

8 years agoFix a variety of bugs and other issues with parsing some simple
Jamie Love [Thu, 20 May 2010 11:35:42 +0000 (23:35 +1200)]
Fix a variety of bugs and other issues with parsing some simple
expressions and other things, like boolean expressions.

8 years agoReinstate the flag that makes the server print text.
Jamie Love [Thu, 20 May 2010 10:45:05 +0000 (22:45 +1200)]
Reinstate the flag that makes the server print text.

We're just gonna have to find another way to deal with code that
needs the raw objects.

8 years agoFix bug that stopped the objects() command being run by the user.
Jamie Love [Thu, 20 May 2010 10:33:29 +0000 (22:33 +1200)]
Fix bug that stopped the objects() command being run by the user.

8 years agoFix bug stopping normal plots showing up.
Jamie Love [Wed, 19 May 2010 09:09:29 +0000 (21:09 +1200)]
Fix bug stopping normal plots showing up.

8 years agoAdd support for rwebvis.
Jamie Love [Tue, 18 May 2010 10:24:34 +0000 (22:24 +1200)]
Add support for rwebvis.

rwebvis (http://code.google.com/p/rwebvis/) generates protovis
graphs in the form of javascript code that is then run to generate
the actual graph.

R-Node now deals with such graphs, drawing them in the browser
like other graphs. It's a bit rough around the edges at the moment
though.

In the near future, I expect I'll be replacing my hacked up graphs
with this library completely.

8 years agoRemove debug line - it's a little annoying.
Jamie Love [Mon, 17 May 2010 10:21:26 +0000 (22:21 +1200)]
Remove debug line - it's a little annoying.

8 years agoRemove config.js as well.
Jamie Love [Mon, 17 May 2010 10:16:54 +0000 (22:16 +1200)]
Remove config.js as well.

8 years agoRemove local config files - not meant to add them.
Jamie Love [Mon, 17 May 2010 10:16:14 +0000 (22:16 +1200)]
Remove local config files - not meant to add them.

8 years agoAdd basic caching to the server - files don't get sent if not changed
Jamie Love [Sun, 16 May 2010 08:41:20 +0000 (20:41 +1200)]
Add basic caching to the server - files don't get sent if not changed
now.

8 years agoHave graphs drawn server side show up nicely for users.
Jamie Love [Sun, 9 May 2010 10:18:56 +0000 (22:18 +1200)]
Have graphs drawn server side show up nicely for users.
They are now shown as part of the normal graph list, and can be
downloaded. Default sizing isn't quite right though.

8 years agoImplement a feature to allow users to choose what format graphs
Jamie Love [Tue, 4 May 2010 10:00:01 +0000 (22:00 +1200)]
Implement a feature to allow users to choose what format graphs
are provided in. This also works to allow users to graph all manner
of graphs server side and have them show up in the client.
The user can also turn off client side graphs (for those graphs
that exist client side), and only use server side graphs.

Finally, a stupid bug was fixed which had all the R command handlers
deriving from the wrong superclass.

8 years agoRemove 'command' that was there to ensure we didn't wrap graphing
Jamie Love [Tue, 4 May 2010 07:32:52 +0000 (19:32 +1200)]
Remove 'command' that was there to ensure we didn't wrap graphing
commands. No longer needed.

8 years agoHave the server pretty-print for us. We just request it.
Jamie Love [Tue, 4 May 2010 07:31:15 +0000 (19:31 +1200)]
Have the server pretty-print for us. We just request it.
This is done so that we can allow the server to deal with a request
in a more logical fashion if deems it reasonable, e.g. for graphical
commands.

8 years agoMore work on server side graph generation.
Jamie Love [Mon, 3 May 2010 12:26:18 +0000 (00:26 +1200)]
More work on server side graph generation.

8 years agoAdd a simple scratch pad. To be made better over time.
Jamie Love [Fri, 30 Apr 2010 22:51:19 +0000 (10:51 +1200)]
Add a simple scratch pad. To be made better over time.

8 years agoCommands are now, by default, printed in a manner that follows
Jamie Love [Fri, 30 Apr 2010 20:21:25 +0000 (08:21 +1200)]
Commands are now, by default, printed in a manner that follows
the standard R console more closely - if we don't understand
how to deal with a command, then we print out the results.

8 years agoR-Node can now run it's own Rserve client.
Jamie Love [Thu, 29 Apr 2010 10:54:24 +0000 (22:54 +1200)]
R-Node can now run it's own Rserve client.
Implement a new server feature that allows R-Node to run R itself,
meaning users don't need to run R separately (though it does need
to be installed). This allows by an all-in-one type solution, and
also a more distributed solution.

8 years agoRemove console.log in line graph.
Jamie Love [Wed, 28 Apr 2010 10:58:52 +0000 (22:58 +1200)]
Remove console.log in line graph.

8 years agoAdd TODO file until we have a issue tracker.
Jamie Love [Wed, 28 Apr 2010 10:39:07 +0000 (22:39 +1200)]
Add TODO file until we have a issue tracker.

8 years agoImplement start of server-side fallback for graphing.
Jamie Love [Wed, 28 Apr 2010 10:33:02 +0000 (22:33 +1200)]
Implement start of server-side fallback for graphing.

If we recognise the request as a request to graph something,
then we'll wrap it in code that'll generate a PNG, which we
then return to the user. More to do on this (to support
multiple graphing commands that should all generate a single
graph).

8 years agoUpdate to ExtJS 3.2.1
Jamie Love [Wed, 28 Apr 2010 09:31:08 +0000 (21:31 +1200)]
Update to ExtJS 3.2.1

8 years agoWrap the 'print' command to get output to the client.
Jamie Love [Wed, 28 Apr 2010 09:06:38 +0000 (21:06 +1200)]
Wrap the 'print' command to get output to the client.

8 years agoImplement capabilities
Jamie Love [Wed, 28 Apr 2010 08:50:52 +0000 (20:50 +1200)]
Implement capabilities
This allows the server to tell the client what it can and cannot
do.

8 years agoAdd the beginnins of the object browser.
Jamie Love [Tue, 27 Apr 2010 10:00:43 +0000 (22:00 +1200)]
Add the beginnins of the object browser.

8 years agoMove to a more flexable architecture for server side handlers.
Jamie Love [Tue, 27 Apr 2010 08:53:10 +0000 (20:53 +1200)]
Move to a more flexable architecture for server side handlers.

8 years agoImplement file upload and parsing. Simplified for now.
Jamie Love [Mon, 26 Apr 2010 09:05:29 +0000 (21:05 +1200)]
Implement file upload and parsing. Simplified for now.
Configuration allows this to be turned off or on.

8 years agoFix bug in help loader that stopped loading help for two-part
Jamie Love [Mon, 26 Apr 2010 09:03:34 +0000 (21:03 +1200)]
Fix bug in help loader that stopped loading help for two-part
functions.

8 years agoImplement graph minimisation.
Jamie Love [Thu, 22 Apr 2010 10:56:40 +0000 (22:56 +1200)]
Implement graph minimisation.
This includes showing them in the 'recent graphs' list, being able to
reshow them, and then delete them.

8 years agoImplement login window and hence R-Node login support.
Jamie Love [Thu, 22 Apr 2010 09:40:45 +0000 (21:40 +1200)]
Implement login window and hence R-Node login support.

8 years agoFix bugs in graph drawing that was getting the wrong size for graphs.
Jamie Love [Wed, 21 Apr 2010 10:45:55 +0000 (22:45 +1200)]
Fix bugs in graph drawing that was getting the wrong size for graphs.

8 years agoRemove reference to jquery in makefile.
Jamie Love [Wed, 21 Apr 2010 10:36:10 +0000 (22:36 +1200)]
Remove reference to jquery in makefile.

8 years agoMove to using ExtJS for the UI.
Jamie Love [Wed, 21 Apr 2010 10:32:09 +0000 (22:32 +1200)]
Move to using ExtJS for the UI.
This removes completely the use of JQuery. While I think JQuery is
amazing, a brilliant piece of software, and a joy to develop with,
it is not suitable for building the R-Node UI with.

8 years agoAdd an R-Node instance information page. Currently this is a little
Jamie Love [Sat, 17 Apr 2010 10:58:09 +0000 (22:58 +1200)]
Add an R-Node instance information page. Currently this is a little
to hard coded, but it'll be made easier later.

8 years agoRename files to allow the makefile to be written to auto-include
Jamie Love [Sat, 17 Apr 2010 10:10:16 +0000 (22:10 +1200)]
Rename files to allow the makefile to be written to auto-include
all Javascript files.

8 years agoMove to using a wrapper around ExtJS/JQuery functions to ease.
Jamie Love [Sat, 17 Apr 2010 09:35:56 +0000 (21:35 +1200)]
Move to using a wrapper around ExtJS/JQuery functions to ease.
Standardise on <Array>.forEach.

8 years agoImplement per-user sessions, session idle cleanup and fix a few issues
Jamie Love [Fri, 16 Apr 2010 10:16:54 +0000 (22:16 +1200)]
Implement per-user sessions, session idle cleanup and fix a few issues
that stopped the UI working on google chrome cleanly.

8 years agoFix small bug that showed username/password dialog when using no
Jamie Love [Thu, 15 Apr 2010 10:51:11 +0000 (22:51 +1200)]
Fix small bug that showed username/password dialog when using no
authentication.

8 years agoAdd basic username/password authentication
Jamie Love [Thu, 15 Apr 2010 10:44:53 +0000 (22:44 +1200)]
Add basic username/password authentication

8 years agoMove to a plugin oriented architecture for authentication.
Jamie Love [Thu, 15 Apr 2010 09:12:20 +0000 (21:12 +1200)]
Move to a plugin oriented architecture for authentication.

8 years agoUpdate parser code to use RNodeCode.
Jamie Love [Tue, 13 Apr 2010 11:08:01 +0000 (23:08 +1200)]
Update parser code to use RNodeCode.
Add a new 'assigment' handler. Doesn't do anything right now, but will
hide assignment output.

8 years agoVarious small fixes.
Jamie Love [Tue, 13 Apr 2010 10:01:15 +0000 (22:01 +1200)]
Various small fixes.

8 years agoMove configurable parameters configuration files. The user list is
Jamie Love [Sun, 11 Apr 2010 10:13:38 +0000 (22:13 +1200)]
Move configurable parameters configuration files. The user list is
still not completed, but general configuration is.

8 years agoAdd a few more log messages to the startup of the R-Node server.
Jamie Love [Sat, 10 Apr 2010 23:26:05 +0000 (11:26 +1200)]
Add a few more log messages to the startup of the R-Node server.

8 years agoNo longer use process.mixin.
Jamie Love [Sat, 10 Apr 2010 11:44:55 +0000 (23:44 +1200)]
No longer use process.mixin.

8 years agoAdd a frontpage to the help so new users have a little more context.
Jamie Love [Sat, 10 Apr 2010 10:44:48 +0000 (22:44 +1200)]
Add a frontpage to the help so new users have a little more context.

8 years agoStart using functional javascript by Oliver Steele
Jamie Love [Sat, 10 Apr 2010 10:43:39 +0000 (22:43 +1200)]
Start using functional javascript by Oliver Steele
http://osteele.com/sources/javascript/functional/

8 years agoRemove blurb.txt - no longer used.
Jamie Love [Sat, 10 Apr 2010 10:42:43 +0000 (22:42 +1200)]
Remove blurb.txt - no longer used.

8 years agoFix unlinking of temp R files when using a different temp directory
Jamie Love [Thu, 8 Apr 2010 12:17:23 +0000 (00:17 +1200)]
Fix unlinking of temp R files when using a different temp directory
prefix.

8 years agoClarify and cleanup notes to run Rserve in a chroot jail.
Jamie Love [Thu, 8 Apr 2010 12:16:38 +0000 (00:16 +1200)]
Clarify and cleanup notes to run Rserve in a chroot jail.

8 years agoProtect against null responses from the R server.
Jamie Love [Thu, 8 Apr 2010 11:10:10 +0000 (23:10 +1200)]
Protect against null responses from the R server.

8 years agoSupport any feature that ends with using the pager configured in R for
Jamie Love [Thu, 8 Apr 2010 11:01:24 +0000 (23:01 +1200)]
Support any feature that ends with using the pager configured in R for
displaying a file. E.g. the 'contributors()' function now works.

8 years agoFix bug that caused an error after printing out, in the client, return
Jamie Love [Thu, 8 Apr 2010 11:00:33 +0000 (23:00 +1200)]
Fix bug that caused an error after printing out, in the client, return
values with no default handler.

8 years agoSupport boolean values from R. Currently it is mapped to a string (for
Jamie Love [Thu, 8 Apr 2010 10:59:36 +0000 (22:59 +1200)]
Support boolean values from R. Currently it is mapped to a string (for
inclusion of the NA value).

8 years agoDon't be so restrictive on lvalues for assignment in parse.
Jamie Love [Thu, 8 Apr 2010 10:59:00 +0000 (22:59 +1200)]
Don't be so restrictive on lvalues for assignment in parse.

8 years agoSupport multiple R commands in the same statement.
Jamie Love [Wed, 7 Apr 2010 08:32:03 +0000 (20:32 +1200)]
Support multiple R commands in the same statement.
This is single line or multiline, with semi-colons in between
statements. It also allows curly braces to denote blocks now.

8 years agoCheck right value when deciding whether to use mutt or not.
Jamie Love [Tue, 6 Apr 2010 11:14:09 +0000 (23:14 +1200)]
Check right value when deciding whether to use mutt or not.

8 years agoAdd a feedback mechanism to the R-Node main UI screen.
Jamie Love [Tue, 6 Apr 2010 11:09:00 +0000 (23:09 +1200)]
Add a feedback mechanism to the R-Node main UI screen.

8 years agoGenerate recent changes list on request, not on build. The other way
Jamie Love [Mon, 5 Apr 2010 07:51:56 +0000 (19:51 +1200)]
Generate recent changes list on request, not on build. The other way
was just silly.

8 years agoAdd a help button as the use of the R command help() probably is
Jamie Love [Sun, 4 Apr 2010 10:44:51 +0000 (22:44 +1200)]
Add a help button as the use of the R command help() probably is
unclear to many people.

8 years agoAdd a 'recent changes' popup to the UI, based on git commit
Jamie Love [Sun, 4 Apr 2010 10:38:19 +0000 (22:38 +1200)]
Add a 'recent changes' popup to the UI, based on git commit
messages. Shows the last two day's worth of commit messages.

8 years agoSupport accessing R help from the UI.
Jamie Love [Sun, 4 Apr 2010 10:16:30 +0000 (22:16 +1200)]
Support accessing R help from the UI.

8 years agoTidy up output of responses from R.
Jamie Love [Sun, 4 Apr 2010 07:02:30 +0000 (19:02 +1200)]
Tidy up output of responses from R.

8 years agoGet error responses back from R.
Jamie Love [Sun, 4 Apr 2010 06:58:57 +0000 (18:58 +1200)]
Get error responses back from R.

8 years agoAdd new website to README file.
Jamie Love [Sun, 4 Apr 2010 05:28:02 +0000 (17:28 +1200)]
Add new website to README file.

8 years agoExtend the list of unsupported commansd.
Jamie Love [Sat, 3 Apr 2010 21:51:29 +0000 (09:51 +1200)]
Extend the list of unsupported commansd.

8 years agoPlot now plots on bottom and left lines properly.
Jamie Love [Sat, 3 Apr 2010 21:26:32 +0000 (09:26 +1200)]
Plot now plots on bottom and left lines properly.

8 years agoOn error from r-node server, have the evaluation function raise the
Jamie Love [Sat, 3 Apr 2010 20:41:56 +0000 (08:41 +1200)]
On error from r-node server, have the evaluation function raise the
error to the client code.

8 years agoPerform better logging on activity via r-node. Also restrict
Jamie Love [Sat, 3 Apr 2010 20:35:45 +0000 (08:35 +1200)]
Perform better logging on activity via r-node. Also restrict
users from running commands that could affect the server.

8 years agoMake sure we have a line at the left/bottom most part of the plot.
Jamie Love [Sat, 3 Apr 2010 19:49:38 +0000 (07:49 +1200)]
Make sure we have a line at the left/bottom most part of the plot.

8 years agoDon't look for the ExtJS JQuery adaptor at http://localhost.
Jamie Love [Sat, 3 Apr 2010 19:49:02 +0000 (07:49 +1200)]
Don't look for the ExtJS JQuery adaptor at localhost.

8 years agoAdd ability to download SVG image copies of generated graphs.
Jamie Love [Sat, 3 Apr 2010 05:00:41 +0000 (18:00 +1300)]
Add ability to download SVG image copies of generated graphs.

8 years agoSet up the graphing so that I can add the download graph code easily.
Jamie Love [Fri, 2 Apr 2010 09:15:47 +0000 (22:15 +1300)]
Set up the graphing so that I can add the download graph code easily.

8 years agoIf we don't understand the class, but we've just been asked to dump
Jamie Love [Fri, 2 Apr 2010 07:44:20 +0000 (20:44 +1300)]
If we don't understand the class, but we've just been asked to dump
a variable, get R to give us a printout.

8 years agoAllow enter on login boxes.
Jamie Love [Fri, 2 Apr 2010 04:06:53 +0000 (17:06 +1300)]
Allow enter on login boxes.

8 years agoAdd mouseover fancyness on the plot graph, but disabled because I can't
Jamie Love [Fri, 2 Apr 2010 03:55:11 +0000 (16:55 +1300)]
Add mouseover fancyness on the plot graph, but disabled because I can't
decide on the right way to hide the mouseover popup when I hide the
graph.

8 years agoUpdate protovis to the latest git code.
Jamie Love [Fri, 2 Apr 2010 03:12:39 +0000 (16:12 +1300)]
Update protovis to the latest git code.

8 years agoAdd login security to the r-node server to access R.
Jamie Love [Fri, 2 Apr 2010 02:19:32 +0000 (15:19 +1300)]
Add login security to the r-node server to access R.

8 years agoHave plotting command plot() handle 'xlab', 'ylab', 'main' and 'sub'
Jamie Love [Thu, 1 Apr 2010 19:45:46 +0000 (08:45 +1300)]
Have plotting command plot() handle 'xlab', 'ylab', 'main' and 'sub'
parameters (i.e. the labels). Also support line type.

8 years agoAdd jquery debug to the codebase so we can track problems.
Jamie Love [Thu, 1 Apr 2010 19:45:31 +0000 (08:45 +1300)]
Add jquery debug to the codebase so we can track problems.

8 years agoAdd up/down to console (i.e. command history)
Jamie Love [Thu, 1 Apr 2010 19:44:41 +0000 (08:44 +1300)]
Add up/down to console (i.e. command history)

8 years agoClean up plot code.
Jamie Love [Wed, 31 Mar 2010 09:24:30 +0000 (22:24 +1300)]
Clean up plot code.

8 years agoTighten server security
Jamie Love [Wed, 31 Mar 2010 09:18:23 +0000 (22:18 +1300)]
Tighten server security

8 years agoAdd back in shjs to linking.
Jamie Love [Sun, 28 Mar 2010 10:39:54 +0000 (23:39 +1300)]
Add back in shjs to linking.