Vladimir Eremeev wrote:
>
> That is, R correctly calls C wrapper,
> ...
> its arguments have correct values
>
That was not the case.
I forgot as.integer() in the .C call and one of the arguments was 0 instead
of 1.
Since that, indices in the array were calculated incorrectly,
ActivePerl has '-x' switch which tells it to skip all lines in the file till
"#!".
This allows writing perl scripts in ordinary .bat files.
?shQuote contains a link with the following perl script example:
===8<===
@echo off
:: hello.bat
:: Windows executable Perl script
:: Note:
:: assumes perl
Dear R users,
I am writing binding from C library to R.
I use R 2.4.1, windows XP, and MinGW.
commands
set PKG_CPPFLAGS="-I../sources" "-I."
set PKG_LIBS="-Lc:/mingw/lib" -lfl -liberty
set DEBUG=T
R CMD SHLIB -d --output=Rsnns.dll [ list of all C sources]
produce the DLL having all defined
Andrew Piskorski wrote:
>
> On Mon, Feb 05, 2007 at 01:28:24AM -0800, Vladimir Eremeev wrote:
>> I am writing binding from C library to R.
>> I use R 2.4.1, windows XP, and MinGW.
>
>> R CMD SHLIB -d --output=Rsnns.dll [ list of all C sources]
>
>> R CMD
Vladimir Eremeev wrote:
>
>
> It calls gcc:
> gcc "-I../sources" "-I." -IC:/PROGRA~1/R/include -gdwarf-2 -Wall -O2
> -std=gnu99 -c rsnns.c -o rsnns.o
> gcc -shared -o Rsnns.dll Rsnns.def [ lots of *.o ] -LC:/PROGRA~1/R/bin
> "-Lc
There are also R reference cards and other quick- and kick-starting manuals,
mentioned in the documentation.
Ray Kiddy-2 wrote:
>
> There is no section in the FAQ equivalent to "Using R". The "R Basics" is
> too
> basic. I would say it addresses "meta-R" questions, such as installing.
>
> I ha
I am writing a package, which contains several functions and variables.
The variables are for internal use by functions.
Functions are ment to be callable by a user.
However, the function cannot access these variables.
The package contains only R code, and was created using package.skeleton
pa
ted file ac9/R/ac9-internal.R, containing the function .onLoad,
however, its body completely differs from that I have defined before.
Vladimir Eremeev wrote:
>
> I am writing a package, which contains several functions and variables.
> The variables are for internal use by functions.
I am sorry, my previous questions about hiding variables from users in a
package were obscure and vague, and would like to clarify them.
This should be a basic question.
I am writing my first package.
It has several functions, which should be callable by users.
These functions use several variabl
rror=recover) will enable you to explore the
> environments that are visible.
>
> We can only guess at this, not having function AB2C.
>
> On Fri, 25 May 2007, Vladimir Eremeev wrote:
>
>
>> I am sorry, my previous questions about hiding variables from users in a
&g
~ Pro + syn + unk + Y + Nh + 0,
offset = c(ac9a
8: model.frame.default(formula = t(cbind(a, b)) ~ Pro + syn + unk + Y + Nh
+ 0, offset
9: eval(predvars, data, env)
10: eval(expr, envir, enclos)
Selection: 0
The function AB2C now sees ac9nw, and gives similar errors, related to other
hidden va
By removing the data directory (which package.skeleton has created, and where
it has put all my variables in files with .rda extension) and adding one
more file to the R directory, containing the variable assignments.
Vladimir Eremeev wrote:
>
> I do use this function.
> Here is th
I am writing a package.
Please, study the sequence of my actions below, and comment, what's
incorrect.
The package contains pure R code.
1. At the one level up from the package directory, from the system command
prompt:
R CMD build --binary ac9
This produces the file ac9_0.1.zip (The package na
Gregor Gorjanc-2 wrote:
>
> Hi!
>
> Is there any way to test if R is running on a Mac? I usually use
> value of .Platform$OS.type for windows or unix, but Mac falls in the
> latter group.
>
> Thanks, Gregor
>
What is in .Platform$path.sep?
Windows has ";", unix has ":".
Mac?
--
View this me
Vladimir Eremeev wrote:
>
>
> Gregor Gorjanc-2 wrote:
>>
>> Hi!
>>
>> Is there any way to test if R is running on a Mac? I usually use
>> value of .Platform$OS.type for windows or unix, but Mac falls in the
>> latter group.
>>
>&
sorry, forgot to mention.
krui_getVersion returns char *
SEXP snns_getVersion(void)
{SEXP version;
char *v;
PROTECT(version=NEW_CHARACTER(15));
v=CHARACTER_POINTER(version);
strcpy(v,krui_getVersion());
UNPROTECT(1);
return version;
}
--
View this message in context:
http://www
I am writing bindings to the neural network simulator SNNS.
At present I have used only .C interface, now I'm studying .Call interface.
I have adapted the example from page 77 of r-exts.pdf, however, it crashes
R.
I use MingW as recommended by Duncan Murdoch.
Please, tell me what I am missing.
Th
I am writing bindings to the C library (neural network simulator SNNS).
DLL was produced with the command
R CMD SHLIB [source with C-wrappers, callable from R with .C and all
sources from the snns kernel]
I used latest MinGW.
The problem is. R crashes with the "segmentation violation".
Tracing w
18 matches
Mail list logo