Displaying 20 results from an estimated 7000 matches similar to: "About passing parameter to '.R' script file"
2004 Aug 27
2
about passing parameter to '.R' script file (PR#7201)
Hi,
I am trying the 'R' application for generating the data for the uploaded '.gpr' file. I have written script file named 'test.R'. Currently i have hardcoded the path of uploaded '.gpr' file in the script itself.
I would like to know how to pass a command line parameter to the 'test.R' script file, so that i dont have to hardcode the path and filename
2004 Feb 20
2
passing object names in a vector to save?
Hi!
Like to write quite a lot (ca 100) of objects from my envirovment with save.
The names of the objects are in a list nam.
nam<-dir()
nam<-grep("E",nam,value=T)
length(nam)
20
for(x in nam)
{
#reads the objects and assigns the names.
assign(x,simFromEmboss(Simmatrix(),x))
nnam<-paste(x,".rda",sep="")
print(nnam)
save(x,file=nnam)
}
I knew that
2004 Aug 27
4
Running R from CD?
At work I have no permission to install R. So, would anyone know whether it
is possible to create a CD with a running R-installation for a windows(XP)
pc? And of course, how to?
Thank you for your help,
Hans van Walen
2005 Feb 17
2
How to upgrade library from R 1.9.1 to R 2.0.1
Dear All:
I have a library for R 1.9.1, it is very easy to setup a library in R 1.9.1.
For example:
I want to setup a library "test" for R1.9.1.
1. Create a folder "test" in the direct X:\ R\ rw1091\ library \.
2. Create a file "DESCRIPTION" in the direct X:\ R\ rw1091\ library\ test\.
3. Modify the "Package:" and "Title:"
2004 Sep 22
2
Facing problems with C code compilation - Please help.
Hello,
I started using R a month ago - so I am a novice in this area. I am stuck with a problem and need some help urgently.
I am using windows version of R 1.9.1. I am trying to compile C code in it. I have my C code - "hello.c" is lying in C:\Program Files\R\rw1091
This code is -
#include <R.h>
void hello(int *n)
{
int i;
for(i=0;i< *n; i++)
{
2004 Jul 03
1
Installation of R in Windows
I tried to install R (V 1.9.1) on an XP Home Edition box with loads of disk space and 256 MB of RAM. During installation, I get messages stating that some files are corrupted. I used two copies of the install exe downloaded from different sites and still get the same messages at the same spots in the install. What do I need to do to get around this?
I ran md5sum on the downloaded exe file:
2004 Aug 05
1
Local library on Windoze.
I'm mystified by a Windoze ``phenomenon'' which has just bitten me.
I have a laptop which boots either Windoze or Linux; I (sad to say)
need the Windoze OS for teaching purposes. I have R 1.9.1 installed
on the laptop in the Windoze OS.
Just now I decided to install, under the Windoze version of R,
a library (``Misc'') of some local functions that I have collected
over the
2004 Sep 10
2
loading Sjava
I'm excited about SJava, and I'ld love to get it working, but can't get
past loading the package.
.First.lib fails on this statement:
> library.dynam("SJava", "SJava", "C:/PROGRA~1/R/rw1091/library")
Error in dyn.load(x, as.logical(local), as.logical(now)) :
unable to load shared library
2004 Jul 14
1
RCMD fails in Windows XP
I have setup R 1.9.1 on my Dell laptop running windows XP. I have
installed it to C:\R\rw1091. Rgui runs fine, but Rcmd fails if run with
parameters (i.e. install). The windows dialog box cheerfully says "R for
Windows front-end has encountered a problem and needs to close. We are
sorry for the inconvenience." Running the visual C++ debugger informs me
that there is an unhandled
2004 Sep 03
6
seq
Hi everyone,
I've tried the below on R 1.9.1 and the 2004-08-30 builds of R 1.9.1
Patched and R 2.0.0 on Windows 2000, and the results are consistent.
> seq(0.5, 0, by = -0.1)
[1] 0.5 0.4 0.3 0.2 0.1 0.0
> seq(0.7, 0, by = -0.1)
[1] 7.000000e-01 6.000000e-01 5.000000e-01 4.000000e-01 3.000000e-01
2.000000e-01 1.000000e-01 -1.110223e-16
Is this really the intended behaviour?
2004 Jul 07
2
Win32 & C code
Hi,
I'm trying to get C code working with R. This is my first time writing C
on Windows and I'm making a mess of it. Help!
I'm following the example in Roger Peng's "An Introduction to the .C
interface to R". The C code is:
#include <R.h>
void hello(int *n){
int i;
for(i=0; i < *n; i++) {
Rprintf("Hello, world!\n");
}
}
I seem to be unable
2020 Jun 24
2
FW: Restrict qualifier on class members
Hi Jeroen,
Sorry, I missed that. I tried the patch, and this program:
#include <stdint.h>
#define __remote __attribute__((address_space(1)))
__remote int* A;
__remote int* B;
void vec_add(__remote int* __restrict a,
__remote int* __restrict b,
int n) {
#pragma unroll 4
for(int i=0; i<n; ++i) {
a[i] += b[i];
}
}
int main(int argc, char** argv) {
2011 Dec 16
2
[LLVMdev] Typos in ARMInstrInfo.td ?
Hi,
I think there are a set of typos in the ATOMIC_LOAD_UMIN_I* and
ATOMIC_LOAD_UMAX_I*
pseudo-instructions .
Specifically,
def ATOMIC_LOAD_MIN_I32 : PseudoInst<
(outs GPR:$dst), (ins GPR:$ptr, GPR:$val), NoItinerary,
[(set GPR:$dst, (atomic_load_min_32 GPR:$ptr, GPR:$val))]>;
and
def ATOMIC_LOAD_UMIN_I32 : PseudoInst<
(outs
2018 Jun 15
2
Strange Machineinstr
Hi
I write a machinefunction pass to print all the machinefunction's machine
instructions.
My target architecture is ARM. However, I don't understand some part of the
machine instructions.
Below is some of the assembly language for function A.
.text:0001C034 STMFD SP!, {R4,R10,R11,LR}
> .text:0001C038 ADD R11, SP, #8
> .text:0001C03C
2004 Jun 25
4
Installing on Windows packages build on Unix
Hello,
I wanted to share with a colleague a few R functions that I wrote. To
this purpose, I created a small package on my machine (Unix) and
emailed it to her. Now she is having troubles installing the package
on her Windows machine. It seems that on her side, install.packages
looks for a "zip" file - while I have created a "tar.gz" file. I tried
to build the package with the
2004 Jun 08
1
[Q] raw -> gpr in aroma package
Hi.
Is it possible to make gpr from raw?
library(aroma)
#read gpr file
gpr <- GenePixData$read("gpr123.gpr", path=aroma$dataPath)
# gpr -> raw
raw <- as.RawData(gpr)
# raw -> ma
ma <- getSignal(raw, bgSubtract=FALSE)
ma.norm <- clone(ma)
#normalization
normalizeWithinSlide(ma.norm, "s")
#ma -> raw
raw2 <- as.RawData(ma)
I want to make gpr data from
2018 Jun 15
3
Strange Machineinstr
Hi Krzysztof
Thank you very much for your quick and clear reply. I know that MIR may not
match hardware instructions directly. However, I think the semantics should
be similar.
For example, the first instruction is a store-multiple instruction in ARM.
I think the first four MIR I shown should have the similar semantics with
the first three hardware instructions. I still cannot see the
2011 Dec 21
0
[LLVMdev] Typos in ARMInstrInfo.td ?
Thanks. Fixed with r147032.
Evan
On Dec 16, 2011, at 1:50 AM, George Russell wrote:
> Hi,
>
> I think there are a set of typos in the ATOMIC_LOAD_UMIN_I* and
> ATOMIC_LOAD_UMAX_I*
> pseudo-instructions .
>
> Specifically,
>
> def ATOMIC_LOAD_MIN_I32 : PseudoInst<
> (outs GPR:$dst), (ins GPR:$ptr, GPR:$val), NoItinerary,
>
2004 Oct 01
3
Reading multiple files into R
I want to read data from a number of files into R.
Reading individual files one by one requires writing enormous amount of
code that will look something like the following.
****************
maptools:::dbf.read("wb-01vc.dbf")->dist1
maptools:::dbf.read("wb-02vc.dbf")->dist2
maptools:::dbf.read("wb-03vc.dbf")->dist3