Displaying 20 results from an estimated 8000 matches similar to: "Using the Rprofile file to automatically plot data on Startup of R version 2.0.1."
2005 Jan 06
1
Using the Rprofile file to automatically plot data on Sta rtup of R version 2.0.1.
Dear John,
I belive your problem has to do with the sequence of startup. I think that
.Rprofile is called before the required libraries are attached.
You might like to try putting your code into a .First() function and run it
that way.
Cheers,
Andreas
Dr Andreas Kiermeier
Statistician
SARDI FOOD SAFETY PROGRAM
33 Flemington Street
Glenside SA 5065
Phone: +61 8 8207 7884
Fax: +61 8
2005 Jan 06
0
Rprofile file to automatically plot data, tried using the .First command.
No. You put the _whole_ thing into .First(), not just the plot statement.
One possibility is to have the code in a script file (say myscript.R) and
define .First as follows:
.First <- function() source("myscript.R")
Haven't try it myself, though.
Andy
> From: John Fisler
>
> Dear Dr. Andreas Kiermeier and the R help Community,
>
> Thank you for your idea on
2004 Nov 30
1
Build package for R 2.0.1 under Windows
This summer I and a colleague built a package for R v 1.9.1 containing
C-code under Windows. That only worked for us when
R was installed in c:\program files\R. Now I have R v 2.0.1 and the same
package won't build. I get the following
C:\Program Files\R\rw2001\bin>rcmd check "c:\program
files\r\rw2001\src\library\
sag"
* checking for working latex ...latex: not found
NO
* using
2005 Jan 31
2
Startup Files (RProfile) and R-Aqua
Hello,
I'm having some difficulty understanding the documentation relative to
the startup files with R-Aqua 2.0.1 for Mac OS X.
Specifically, I'm wondering: where does R search for the startup files
(my home directory at Users:<me>:?); how should they be named
(.RProfile will be treated by Mac OS X as a system file and be hidden,
so I'm wondering if it should just be
2005 Feb 17
2
package bulding in windows.
Hello everyone.
I am using R 2.0.1 in windows XP sp2 and I want to create a package.
I get the following errors when I run these commands at the dos prompt.
Please help.
Thanks.
NIshan
F:\Program Files\R\rw2001\bin>Rcmd build f:\testingskeke
* checking for file 'f:\testingskeke/DESCRIPTION' ... OK
* preparing 'f:\testingskeke':
* cleaning src
*
2005 Mar 11
2
Package Installation in RGui (PR#7262)
In reference to the thread
http://tolstoy.newcastle.edu.au/R/devel/04/10/0859.html
I have the same problem updating packages with newly-installed version of
released version of R 2.0.1. Previous posts refer to a bug in windows. I
wonder if there is a work-around? This probably should go to R-help but it
follows on from the post in R-devel. Apologies in advance.
OS: Windows XP Professional,
2004 Dec 22
2
Creating packages in windoze: *** [indices] Error 1
Dear R community,
I am running R 2.0.1 on a Windoze XP OS. I recently upgraded from R 1.9x to
2.0.1 and I am currently
upgrading a my personal function packages. My other packages compiled
without
a hitch but I am having a difficult time with my largest package.
Can someone please help me with the following error message
"Error in parse(file, n, text, prompt) : syntax error on line
2004 Oct 19
2
Changing the Y graph scale Maximum value.
Hello,
I am new to R and have read the documents related to graphics but have
not come across a description of how to change the maximum scale on a
graph. Below is sample code that sets up a plot window with a 0 Minimum
to 10 Maximum, X and Y coordinate system:
x <- c(1,2,3,4,5,6,7,8,9,10)
y <- c(1,1.5,2,2.5,3,3.5,4,4.5,5,5.5)
plot(0:10, 0:10, type = "n" )# setting up coord.
2008 Jul 14
2
.First and .Rprofile won't run on startup
I'm trying to source a file automatically every time I start R. I tried
adding the following .First function in a file Rprofile.site in my
$R_HOME/etc/ directory (verified $R_HOME by Sys.getenv()) as well as in a
file .Rprofile in my $HOME directory and .Rprofile in the working directory:
.First <- function(){
source(file.path(Sys.getenv("HOME"), "R",
2005 Mar 01
1
Two problems building a package
Hello all:
I have written a few R scripts and am trying to turn them into a package for
submission to CRAN. All of these scripts are R code only, no C or C++ or
anything else. I'm working with R 2.0.1 running on a Windows XP machine. So
far running ">rcmd install --build --docs=normal mypkge" seems to work
(i.e., the library "mypkge" is installed in R\rw2001\library and
1999 Sep 24
2
R's startup : .Rprofile & .Renviron -- info and RFC
[RFC = Request for Comments]
{ Yes, the documentation for .Renviron is really not there (but the FAQ...);
the rest is in ?Startup }
In R's Startup (on Unix only??) {unless --no-environ is specified}
~/.Renviron (if there) is read as an 'sh' script before R is called,
then R looks ((for the site-wide Rprofile and then))
for .Rprofile in the current directory and then for
2004 Nov 07
1
creating a package without lazy loading
When I do a
R CMD build --binary
then I get the messages at the end of this post unless I specify
LazyLoad: no
in the DESCRIPRION file. If I do that then everything
proceeds smoothly. R CMD check proceeds smoothly in
either case. Is there something I should be aware
of that is causing this message when I do not turn off
lazy loading?
I am using Windows XP and R 2.0.1 beta
2004 Dec 22
1
help with creating package
Hello,
I'm trying to create a source package (on Win2k system). I followed the
instructions from R-extns.pdf, installed ActivePerl and RTools with setting
the DOS path to it.
Then I did "Rcmd check" and had an error:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\R\rw2001\bin>Rcmd check D:/prime7/SpnInstall/spectrino
* checking for working latex ...latex: not found
NO
* using log directory
2005 Feb 02
1
windows dse bundle install problem
I rarely use Windows, so perhaps this is a question for r-help but I
don't think so.
> install.packages("dse")
trying URL `http://cran.r-project.org/bin/windows/contrib/2.0/PACKAGES'
Content type `text/plain; charset=iso-8859-1' length 24873 bytes
opened URL
downloaded 24Kb
trying URL
`http://cran.r-project.org/bin/windows/contrib/2.0/dse_2005.1-1.zip'
Content
2015 Aug 12
1
enableJIT in Rprofile leads to 'not a proper evaluation environment' on startup
A commenter on SO suggested that I copy my question to R-devel
http://stackoverflow.com/q/31972325/850781
I have had
--8<---------------cut here---------------start------------->8---
library(compiler)
compiler::enableJIT(3)
--8<---------------cut here---------------end--------------->8---
in ~/.Rprofile for years; now that I upgraded to 3.2.1 I get this on startup:
2012 Jun 20
1
Websocket example out of the box failing if running at startup from Rprofile.site
Hello,
I run websockets 1.1.1 from R 2.15 without any problems. I would like
to deploy R script running automatically for all users when R is
starting from Rprofile.site like follow:
.First <- function()
{
source("C:\\R\\orig-websockets.R")
}
This script is from websockets package distribution.
The error is follow:
Error in .parse_header(x) :
2004 Dec 28
3
lost association for .RData files
Somehow I have lost the correct file association for .RData files. They
are now associated with a text file editor. When I right click on any
.RData file and try to change the association, R is not listed as a
choice of program. I browse to c:\Program Files\R\rw2001\bin\Rgui.exe
and select that file to open .RData, but Windows does not then place
Rgui.exe in the list of programs to use. I can
2008 Apr 13
1
.Rprofile, date tagging history, loading packages
Dear R-Helpers,
I'm fiddling with my .Rprofile in Windows XP & R 2.7.0 Beta. I prefer to
manually save my workspace but automatically save my command history via
the .Rprofile. That is working fine once I found that "utils::" was
required before the loadhistory & savehistory functions. What I would
like to do is add a separator line with a date between the histories of
each
2023 Mar 21
1
Rprofile.site and automatic installation of missing packages
Dear all.
I am trying to install missing (not installed) packages during startup of R
through code in Rprofile.site but I miserably failed and I am not sure what
I am doing wrong.
R is installed to C:Program files but it is not writable for the users,
therefore I cannot change Rprofile.site located in root etc directory. I
however can put Rprofile.site in users home directory (Documents)
2004 Dec 21
1
scheduling R tasks under windows
I'm trying to schedule R tasks in Windows Server 2003.
I can run the following from the DOS prompt without
any difficulty:
c:\Reports>c:\r\rw2001\bin\rterm.exe --no-restore
--no-save <test.R> test.out
where test.r has two lines: library(tools);
Sweave("rlr.Rnw").
When I try to run the same from the task scheduler, I
fill in the dialogue box as follows:
Run: