Hello,
I wrote a system to perform data analysis in C++. Now I am integrating
it to R. I need to allocate memory for my own C++ data structures,
which can't be represented by any R data structures. I create a global
hashtable to keep a reference to the C++ data structures. Whenever I
allocate one,
Hi,
I think you need external pointers:
http://cran.r-project.org/doc/manuals/r-release/R-exts.html#External-pointers-and-weak-references
The docs also has an example.
See more examples from other R packages here:
https://github.com/search?q=R_MakeExternalPtr+user%3Acran&type=Code&utf8=%E2%9C%93
On 11/12/2014 05:36 AM, Zheng Da wrote:
Hello,
I wrote a system to perform data analysis in C++. Now I am integrating
it to R. I need to allocate memory for my own C++ data structures,
which can't be represented by any R data structures. I create a global
hashtable to keep a reference to the C++
I am getting failure of build and check, for an Rd file that has a long
argument list.
Guess diagnosis: a quoted string beyond a certain point in the argument list is
fatal.
Example: Use the function below, create an Rd file for it with prompt(). Move the .Rd
file to the man directory (no ne
I certainly have longer argument lists with no problem. More likely the
Rd file needs special consideration for %.
Paul
On 11/12/2014 02:11 PM, Therneau, Terry M., Ph.D. wrote:
I am getting failure of build and check, for an Rd file that has a long
argument list.
Guess diagnosis: a quoted stri
On Wed, 12 Nov 2014, "Therneau, Terry M., Ph.D." writes:
> I am getting failure of build and check, for an Rd file that has a long
> argument list.
> Guess diagnosis: a quoted string beyond a certain point in the argument list
> is fatal.
Another guess: should you not escape the '%'? That is,
On 12/11/2014 2:11 PM, Therneau, Terry M., Ph.D. wrote:
I am getting failure of build and check, for an Rd file that has a long
argument list.
Guess diagnosis: a quoted string beyond a certain point in the argument list is
fatal.
No, the problem is that % is a comment marker in .Rd. You need
'Writing R Extensions', section 2.1 Rd format, says"
Comments run from a percent symbol % to the end of the line in all types of
text (as on the first line of the load example).
Because backslashes, braces and percent symbols have special meaning, to
enter them into text sometimes requires escape
On Wed, Nov 12, 2014 at 1:28 PM, Duncan Murdoch
wrote:
> On 12/11/2014 2:11 PM, Therneau, Terry M., Ph.D. wrote:
>>
>> I am getting failure of build and check, for an Rd file that has a long
>> argument list.
>> Guess diagnosis: a quoted string beyond a certain point in the argument
>> list is fat
Thank you, Gabor and Martin. It helps a lot.
Da
On Wed, Nov 12, 2014 at 1:20 PM, Martin Morgan wrote:
> On 11/12/2014 05:36 AM, Zheng Da wrote:
>>
>> Hello,
>>
>> I wrote a system to perform data analysis in C++. Now I am integrating
>> it to R. I need to allocate memory for my own C++ data stru
On Wed, Nov 12, 2014 at 10:20 AM, Martin Morgan wrote:
> On 11/12/2014 05:36 AM, Zheng Da wrote:
>>
>> Hello,
>>
>> I wrote a system to perform data analysis in C++. Now I am integrating
>> it to R. I need to allocate memory for my own C++ data structures,
>> which can't be represented by any R da
On the Windows download page the second link is "Installation and other
instructions" http://cran.cnr.berkeley.edu/bin/windows/base/README.R-3.1.2.
Clicking on this gets me a "download or open as" dialogue rather than a page of
text.
I think something like this happened a few years ago, and th
This caused by the Berkeley web server setting strange content-types.
It is probably more suitable to report this to the Berkeley mirror
admin or cran maintainers.
> library(httr)
> GET("http://cran.cnr.berkeley.edu/bin/windows/base/README.R-3.1.2";)$headers["content-type"]
$`content-type`
[1] "ap
13 matches
Mail list logo