search for: psexp

Displaying 6 results from an estimated 6 matches for "psexp".

Did you mean: sexp
2006 Apr 12
0
headerfile translation to Delphi (Pascal) completed
...r an example with parameters passed by reference } procedure ConvC( _a: pDoubleArr; _na: pInteger; _b: pDoubleArr; _nb: pInteger; _ab: pDoubleArr ); cdecl; { ConvCallRInternals - call our convolve using .Call and Rinternals } function ConvCallRInternals( _a, _b: pSExp ): pSExp; cdecl; { ConvCallRDefines - call our convolve using .Call and Rdefines } function ConvCallRDefines( _a, _b: pSExp ): pSExp; cdecl; { ConvExternalRInternals - call our convolve using .External and Rinternals } function ConvExternalRInternals( _args: pSExp ): pSExp; cdecl; { call o...
2006 Apr 25
1
protection needed?
...ject if I immediately access its value and don't access the object anymore. I tried to find out by looking into the R sources but didn't find something similar. It's about the variable _skipLines in the call "function ReadXls( _file, _sheet, _type, _header, _colHeader, _skipLines: pSExp ): pSExp; cdecl;". I did: skipLines:= riInteger( riCoerceVector( _skipLines, setIntSxp ) )[0]; but am unsure if I would have to something along: skipInt:= riProtect( riCoerceVector( _skipLines, setIntSxp ) ); skipLines:= riInteger( skipInt )[0]; riUnprotect( 1 ); According t...
2006 Oct 16
6
NULL or NA for missing function arguments?
Hi, I am troubled by the use of NULL or NA to indicate missing/non-specified function arguments. In the R code that I have looked at, it seems that both forms are used (NULL seems to be used more often though). Sometimes both variants are in the same declaration, e.g. format.default <- function(x, trim = FALSE, digits = NULL, nsmall = 0, justify = c("left",
2010 Nov 29
0
Updates for xlsReadWrite (1.5.3) and xlsReadWritePro (1.6.1/3)
...rom www.swissr.org/download (binary builds for R2.9 - R2.12) * (the full download listing is here: http://dl.dropbox.com/u/2602516/swissrpkg/index.html) ###### Changes in xlsReadWrite 1.5.3 (0b78c1) ###### - *important*: fix AV when reading large data (issue #110: in a subroutine a pointer (pSExp) had been 'riUnprotect'ed (Rf_unprotect) too early, the total protect/unprotect count was correct (of course) but when 'anyDuplicated' got called in the subroutine, the control flow switched to R and R then had the possibility to free 'my' pointer. Not good)....
2006 Nov 27
1
R.DLL mapping by P/Invoke
...ic BdxFree free; public BdxTrace trace; public BdxVariant2BDX v2bdx; public BdxBDX2Variant bdx2v; } */ [DllImport("Rproxy.DLL", CallingConvention = CallingConvention.Cdecl)] static extern int BDX2SEXP(IntPtr pBDXData, out IntPtr pSEXPData); [DllImport("Rproxy.dll", CallingConvention = CallingConvention.Cdecl)] static extern int SEXP2BDX(IntPtr pSexp, out IntPtr ppBDXData); [DllImport("Rproxy.dll", EntryPoint = "Variant2BDX at 20")] static extern int Variant2BDX([Marsh...
2007 Oct 17
0
Using R.dll in .NET IPC
...ic BdxFree free; public BdxTrace trace; public BdxVariant2BDX v2bdx; public BdxBDX2Variant bdx2v; } */ [DllImport("Rproxy.DLL", CallingConvention = CallingConvention.Cdecl)] static extern int BDX2SEXP(IntPtr pBDXData, out IntPtr pSEXPData); [DllImport("Rproxy.dll", CallingConvention = CallingConvention.Cdecl)] static extern int SEXP2BDX(IntPtr pSexp, out IntPtr ppBDXData); [DllImport("Rproxy.dll", EntryPoint = "Variant2BDX at 20")] static extern int Variant2BDX([Marsh...