similar to: Execute function at startup

Displaying 20 results from an estimated 10000 matches similar to: "Execute function at startup"

2004 Jul 14
5
RGui Titlebar
In the windows version (RGui), is there a way to set the text displayed in the titlebar of the R window? When I have 2 instances of RGui running, it would be helpul if the titlebar could help to understand which is which. -- Erich Neuwirth, Computer Supported Didactics Working Group Visit our SunSITE at http://sunsite.univie.ac.at Phone: +43-1-4277-38624 Fax: +43-1-4277-9386
2004 Apr 14
1
Re: [R] Execute function at startup
I think you can already do this via .First(). If you start your .First with something like this [give or take some parentheses] if( !is.null( runfirst <- Sys.getenv( 'RUNFIRST'))) try( eval( parse( text=runfirst)))) then whatever you pass in as RUNFIRST=... should get executed on startup. Could even be a call to source(...) if you want to source a particular file. I have a similar
2000 Feb 25
1
r-excel interface code
some of you might be interested. i just uploaded the first release of my r-excel interface package to CRAN. it is in contributed extensions nonstandard extensions erich neuwirth -- Erich Neuwirth, Computer Supported Didactics Working Group Visit our SunSITE at http://sunsite.univie.ac.at Phone: +43-1-4277-38624 Fax: +43-1-4277-9386
2000 Feb 25
1
r-excel interface code
some of you might be interested. i just uploaded the first release of my r-excel interface package to CRAN. it is in contributed extensions nonstandard extensions erich neuwirth -- Erich Neuwirth, Computer Supported Didactics Working Group Visit our SunSITE at http://sunsite.univie.ac.at Phone: +43-1-4277-38624 Fax: +43-1-4277-9386
2004 Apr 19
3
New unique name
In some languages there is a function gensym() which returns a new unique name (in the current environment). This is quite helpful when one has to do temporary assignments. I could not find such a function in R. Is there one? -- Erich Neuwirth, Computer Supported Didactics Working Group Visit our SunSITE at http://sunsite.univie.ac.at Phone: +43-1-4277-38624 Fax: +43-1-4277-9386
2001 Nov 12
3
histogram question
hist(rbinom(1000,10,0.5),col=2,xlim=c(0,10),ylim=c(0,300)) gives a histogram with "touching bars" hist(rbinom(100000,10,0.5),col=2,xlim=c(0,10),ylim=c(0,30000)) gives a histogram with space between the bars. is there a way to control the space betweent he bars easily? -- Erich Neuwirth, Computer Supported Didactics Working Group Visit our SunSITE at http://sunsite.univie.ac.at
2004 Sep 08
4
factor always have type integer
typeof applied to a factor always seems to return "integer", independently of the type of the levels. This has a strange side effect. When a variable is "imported" into a data frame, its type changes. character variables automatically are converted to factors when imported into data frames. Here is an example: > v1<-1:3 >
2000 Mar 15
2
headers needed in gcc
i am working my way to create a stdin-stdout version of R i am not a gcc configuration expert. currently, i am missing #include <sys/types.h> # include <sys/socket.h> # include <netinet/in.h> # include <netinet/tcp.h> #include "sock.h" as far as i understand my system, these header files shpuld be in /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.1/include
1999 Sep 29
1
date() in win version
when i do print(date()) the output is [1] "Wed Sep 29 09:13:04 1999\n" ios it on purpose the the linfeed is shown as abbreviation and not done? -- Erich Neuwirth, Computer Supported Didactics Working Group Visit our SunSITE at http://sunsite.univie.ac.at Phone: +43-1-4277-38624 Fax: +43-1-4277-9386 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
2005 Dec 22
1
Hiding a function from ls()
I need to define a small helper function which should not be listed by ls(). What is the best and cleanest way of achieving this? -- Erich Neuwirth, University of Vienna Faculty of Computer Science Computer Supported Didactics Working Group Visit our SunSITE at http://sunsite.univie.ac.at Phone: +43-1-4277-38624 Fax: +43-1-4277-9386
2001 Dec 16
1
windows testing, internet
doing make -f Makewfile.win test-Internet in tests gave make[1]: Leaving directory `/cygdrive/d/Work/R-devel/tests' D:/Work/R-devel/bin/Rterm --vanilla LC_ALL=C --internet2 --vanilla < internet.R > internet.Rout2 diff internet.Rout internet.Rout2 99,100c99,100 < unable to resolve 'foo.bar'. < Error in url("http://foo.bar", "r") : cannot open URL
2002 Mar 29
3
system in windows
i want to call "c:/Program Files/Netscape/Communicator/Program/netscape.exe" with system but system("c:/Program Files/Netscape/Communicator/Program/netscape.exe") does not work because of the blank. system('"c:/Program Files/Netscape/Communicator/Program/netscape.exe"',wait=FALSE) works exactly like i want. when i set options(browser="c:/Program
2001 Feb 04
1
help with build on windows needed.
i installed r for window 1.2.1 and suddenly rcmd build does not work any more. C:\work\checked.out>rcmd build Please set TMPDIR to a valid temporary directory C:\work\checked.out>echo %TMPDIR% C:\Documents and Settings\Erich Neuwirth\Local Settings\Temp and this is a valid directory. things worked smoothly in 1.2.0 what can i do? -- Erich Neuwirth, Computer Supported Didactics
2002 Jul 19
3
controling graphic window size and asprec ratio in windows
i am using the rarcinfo package to draw maps. for maps, th aspect ratio is quite important. how can i control the aspect ratio and the size of a graphics window in the mswindows version of R and more generally in R in general. i would like to e able to both set the size before or while the window is corrected, and also for a window which already exists. -- -- Erich Neuwirth, Computer Supported
2001 May 01
2
graphics library fltk
we still do not have dynamic graphics in R natively. i just found out about a widget library called fltk info is at www.fltk.org it has all the stuff r currently can do only through tcl/tk or (as i do it) excel: sliders, knobs, spinners and so on. it is multiplatform, there are production versions for unixen and windows, and there is a beta for macs. this could be a way of getting some of
2002 Oct 31
1
new package RColorBrewer available
RColorBrewer 0.1-1 is available on CRAN. The packages provides palettes for drawing nice maps shaded according to a variable as an R function. The palettes have been designed by and are copyrighted by the ColorBrewer project. An interactive palette selection tool byt the original designers is available at http://colorbrewer.org -- -- Erich Neuwirth, Computer Supported Didactics Working Group
2002 Oct 31
1
new package RColorBrewer available
RColorBrewer 0.1-1 is available on CRAN. The packages provides palettes for drawing nice maps shaded according to a variable as an R function. The palettes have been designed by and are copyrighted by the ColorBrewer project. An interactive palette selection tool byt the original designers is available at http://colorbrewer.org -- -- Erich Neuwirth, Computer Supported Didactics Working Group
2001 Dec 13
1
windows build
with todays r-devel..tar.gz make distribution hangs on my win98 machine. this is the las message i see MAKE[2]: Leaving directory `/cygdrive/c/devel/R-devel/src/gnuwin32/bitmap/jpeg-6 b' cp Rbitmap.dll ../../../bin MAKE[1]: Leaving directory `/cygdrive/c/devel/R-devel/src/gnuwin32/bitmap' after that, the it seems that sed is running and somehow hangs. i do have the tools from brians
2000 Jun 23
1
ess
i am using r 1.1.0 and ess 5.1.13 on win2k (with an amd k7). things behave strangely. i can start r with M-x R and i can give a command the command will be executed and i will get the answer, but i will not get a prompt for entering the next command in most cases. when i do graphics command, things are even more surprising. then i get a prompt, but somtimes the graphics window cannot be brought
2000 Mar 15
1
solaris without x
i am trying to compile the current release on solaris 8. i do not have a complete x installation on my server. so i tried ./configure --without-x this is what i get making dataentry.d from dataentry.c In file included from dataentry.c:28: dataentry.h:22: X11/X.h: No such file or directory dataentry.h:23: X11/Xlib.h: No such file or directory dataentry.h:24: X11/Xutil.h: No such file or directory