JJ Allaire wrote:
>>Try locating the roxygen right above the function you want to document
>>(rcpp_hello_world). If you do that then it will be placed next to that
>>function in the .R file (when you have "standalone" roxygen within a C++ file
>>then it's automatically associated with a NULL ob
Hi,
I feel guilty that I am a Windows user, and that I am using RStudio, both of
which is not welcome here. At least the latter is probably not guilty here.
Before looking at the details, I had reported it on the RStudio list, because I
thought it was a problem with roxygen.
To reproduce:
--
:22 PM
> To: Dieter Menne
> Cc: rcpp-devel@lists.r-forge.r-project.org
> Subject: Re: [Rcpp-devel] Rcpp::stop crashes RGui and RStudio under
> Windows
>
>
> On 30 November 2012 at 08:44, Dieter Menne wrote:
> | I tried the following under Windows 7, 64 bit, bo
I tried the following under Windows 7, 64 bit, both RGui and RStudio
File "throw.cpp"
#include
using namespace Rcpp;
// [[Rcpp::export]]
int throwCpp(int nb) {
if (nb == 10)
Rcpp::stop("Unexpected condition occurred");
return nb*2; // Just for testing the normal case }
# R File
librar