Displaying 20 results from an estimated 3000 matches similar to: "How to set R_PROFILE conditional on batch or interactive mode"
2005 Dec 13
1
R_PROFILE on Windows
Dear R-devel,
There seems to be a bug in the Startup section, regarding the
R_PROFILE environment variable in Windows. If not a bug in the Startup
itself, perhaps a bug in the documentation.
According to ?Startup:
Then R searches for the site-wide startup profile unless the
command line option '--no-site-file' was given. The name of this
file is
2004 Aug 08
1
Use of R_PROFILE.R / install.R
According to R-exts:
The second purpose for @file{install.R} is to hold code that needs to be
executed each time the package is attached, after the image is
loaded. Few packages have a need for such code so @file{install.R} is
normally an empty file.
The optional file @file{R_PROFILE.R} is executed before the code in the
@file{R} subdirectory and should be used to set up an
2006 Feb 01
1
The install.R and R_PROFILE.R files
R-exts says
Both install.R and R_PROFILE.R should be viewed as experimental; the
mechanism to execute code before attaching or installing the package may
change in the near future. With the other facilities available as from R
2.0.0 they should be removed if possible.
Every usage of these on CRAN is unnecessary. If you want to save the
image, say so in the SaveImage field in
2008 Jul 16
1
Problem with mpi.close.Rslaves()
I am running R 2.7.0 on a Suse 9.1 linux cluster with a job scheduler
dispatching jobs and openmpi-1.0.1. I have tried running one of the
examples at http://ace.acadiau.ca/math/ACMMaC/Rmpi/examples.html in Rmpi
and they seem to be working, except mpi.close.Rslaves() hangs. The
slaves are closed, but the master doesn't finish its script. Below is
the example script and the call to R. The job is
2004 Jun 16
1
start-up problems
Hi,
After some reading and experimentation I found that I cannot solve this
problem:
1.
I am starting R and check:
> system("pwd")
/home/woodstock/hoffmacw/R/test
> system("echo $HOME")
/home/woodstock/hoffmacw
> system("echo $R_PROFILE")
/home/woodstock/hoffmacw/R
> system("ls $R_PROFILE/.Rprofile")
/home/woodstock/hoffmacw/R/.Rprofile
2005 Feb 25
3
passing command line arguments to 'R CMD BATCH myScript.R'
Hi Community,
I have a question about how to pass command line parameters to R script
running in the batch mode. The problem is: there is a banch of data
files which are to be processed by R script called from a web-server,
i.e. in the batch mode. The web server generates data files and passes
their names calling 'R CMD BATCH' one by one for every file. Now the
question is how to
2008 Jul 10
0
Rmpi unkown input format error
I have just installed Rmpi on a Suse 9.1 linux cluster with
openmpi-1.0.1. I am trying the example included below from the tutorial
website. However, I keep getting the following error:
> # Load the R MPI package if it is not already loaded.
> if (!is.loaded("mpi_initialize")) {
+ library("Rmpi")
+ }
>
> # Spawn as many slaves as possible
>
2003 Oct 01
1
installing DBI_0.1-6.tar.gz
Dear,
I tried to install the DBI package in R-1.7.1, but this gave the
following error:
/volume1/scratch/jallemee/R/lib/R/bin/INSTALL: line 1: 1856
Done ( echo
"options(save.image.defaults=${save_image_defaults})"; if test
-s R_PROFILE.R; then
cat R_PROFILE.R;
fi; echo
2006 Oct 09
2
Incompatability of lme4 and Matrix packages
I just installed R 2.4 on a windows machine and installed the lme4 package
version 0.9975-1. Unfortunately this version requires the 0.9975-2 version of
the Matrix package which I cannot seem to find. It seems the newest version I
can find is 0.9975-1. Is there somewhere I could find this newer version.
Mark Lyman
2008 Jan 16
3
Rprofile.site not executed?
It seems that my Rprofile.site file is not executed when I start R. To
test this I included the following code in that file:
.First <- function(){
cat("\nWelcome at", date(), "\n")
flush.console()
}
When I start R the message above is not displayed.
I am running R 2.6.1 (rgui.exe) under Vista Home Premium. The
Rprofile.site is in the etc folder and the R_PROFILE
2007 Feb 24
2
barchart (lattice) with text labels
I would like to place the value for each bar in barchart (lattice) at
the top of each bar. Something like the following code produces.
library(lattice)
mypanelfunc <- function(x, y, ...)
{
panel.barchart(x, y, ...)
panel.text(x, y, labels=as.character(round(x,2)), ...)
}
myprepanelfunc <- function(x, y, ...) list(xlim=c(0, max(x)+.1))
mydata <- expand.grid(a=factor(1:5),
2009 Jan 22
0
Confused about behavior of an S4 object containing a ts object
I posted the question below about a month ago but received no response.
I still have not been able to figure out what is happening.
I also noticed another oddity. When the data part of the object is a
multivariate time series, it doesn't show up in the structure, but it
can be treated as a multivariate time series. Is this a bug in str?
> setClass("tsExtended", representation =
2008 Jul 01
1
Simulate from a GAM model
Does anybody have any suggestions on how I might simulate from fitted GAM
model? I am using the gam function in the mgcv package to fit a variable
coefficient model like the following from the examples. I would like simulate
based on the fitted model like the simulate function in the stats package does
for lm models.
library(mgcv)
set.seed(10)
## simulate date from y = f(x2)*x1 + error
dat
2007 Nov 07
1
Dealing with schema in RODBC
Is there a way to get a table in a certain schema? The Oracle database I am
using has a table by the same name in two different schemas. This creates
problems in sqlUpdate because to sqlUpdate there are duplicate columns. The
following is part of the output of sqlColumns:
sqlColumns(eids, "TEST_ARTCL_INST")[,1:4]
TABLE_CAT TABLE_SCHEM TABLE_NAME COLUMN_NAME
1
2011 Feb 07
1
Question about checkTmvArgs function in rtmvnorm (package tmvtnorm)
Hello!
I was wondering if it's possible to see the actual code of
checkTmvArgs function that is part of the code for rtmvnorm (which is
below - I just typed "rtmvnorm" on the prompt). I get an error:
Error in checkTmvArgs(mean, sigma, lower, upper) :
sigma must be a symmetric matrix
At the same time I am pretty sure that the matrix I am passing as
sigma is a var-covar matrix
2009 Jun 25
2
stringsAsFactors has no impact in expand.grid()?
Hi
I have the feeling, that the argument stringsAsFactors has no impact in the
function expand.grid:
a <- c("PR", "NC", "A2", "BS")
b <- c(1, 0.5, 0.25, 0.125, 0.0625, 0.03125)
class(expand.grid(css, fscs, stringsAsFactors=FALSE)[[1]])
[1] "factor"
class(expand.grid(css, fscs, stringsAsFactors=TRUE)[[1]])
[1] "factor"
Also, when
2002 Jun 12
3
help debugging segfaults
(Sorry for the cross-post--- I wasn't sure which list is more
appropriate...)
Hi everyone,
I've run into segfaults when using my randomForest package on large dataset
(e.g., 100 x 15200) and large number of trees (e.g., ntree=7000 and
mtry=3000). I'm wondering if anyone can give me some hints on where to look
for the problem.
The randomForest package mainly consists of two things:
2002 Jun 12
3
help debugging segfaults
(Sorry for the cross-post--- I wasn't sure which list is more
appropriate...)
Hi everyone,
I've run into segfaults when using my randomForest package on large dataset
(e.g., 100 x 15200) and large number of trees (e.g., ntree=7000 and
mtry=3000). I'm wondering if anyone can give me some hints on where to look
for the problem.
The randomForest package mainly consists of two things:
2012 Apr 26
1
Heatmap fidelity
I'm having a problem when using heatmap. Even though the diagonal of my
matrix is all the same value, the diagonal of my heatmap is not all the same
color. Any suggestions?
Here is some reproducible code:
#########################################
# Get data
nba <- read.csv("http://datasets.flowingdata.com/ppg2008.csv", sep=",")
# Reorder
nba <-
2006 Dec 21
1
Re: Match a Numer - then continue with, dialplan
> -----Original Message-----
> From: Richard Lyman [mailto:pchammer@dynx.net]
> Sent: Wednesday, December 20, 2006 4:29 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [asterisk-users] Re: Match a Numer - then continue with,
> dialplan
>
>
> Douglas Garstang wrote:
> >> -----Original Message-----
> >> From: David