Operating System: Windows 10
Interface Version: R3.4.3
Compiler/Toolkit:
Hi all,
I am using Stan but my laptop has to be reinstalled. Now I have to install everything. I have looked on the link of Rtool and I see that
Download |
R compatibility |
Frozen? |
Rtools34.exe |
R 3.3.x and later |
No |
Rtools33.exe |
R 3.2.x to 3.3.x |
Yes |
To the version of R in my laptop, then Rtools34 should be chosen. However, that is not frozen as recommended in the guideline.
So which version should I use?
Thank you,
Trung Dung.
Thanks you, I have installed Rtools34 and I follow the instruction until the verification step. However, when I run
fx ← inline::cxxfunction( signature(x = “integer”, y = “numeric” ) , ’
return ScalarReal( INTEGER(x)[0] * REAL(y)[0] );
')
fx( 2L, 5 ) # should be 10
I do not get number 10. Instead an error occurs
fx ← inline::cxxfunction( signature(x = “integer”, y = “numeric” ) , ’
- return ScalarReal( INTEGER(x)[0] * REAL(y)[0] );
- ')
C:\Rtools\mingw_64\bin\nm.exe: file17ec7dee5980.o: plugin needed to handle lto object
Cannot export __gnu_lto_slim: symbol not defined
Cannot export __gnu_lto_v1: symbol not defined
collect2.exe: error: ld returned 1 exit status
ERROR(s) during compilation: source code errors or compiler configuration errors!
Program source:
1:
2: // includes from the plugin
3: #include <R.h>
4: #include <Rdefines.h>
5: #include <R_ext/Error.h>
6:
7:
8: // user includes
9:
10:
11: // declarations
12: extern “C” {
13: SEXP file17ec7dee5980( SEXP x, SEXP y) ;
14: }
15:
16: // definition
17:
18: SEXP file17ec7dee5980( SEXP x, SEXP y ){
19:
20: return ScalarReal( INTEGER(x)[0] * REAL(y)[0] );
21:
22: Rf_warning(“your C++ program does not return anything”);
23: return R_NilValue ;
24: }
25:
26:
Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! C:\Rtools\mingw_64\bin\nm.exe: file17ec7dee5980.o: plugin needed to handle lto object
Cannot export __gnu_lto_slim: symbol not defined
Cannot export __gnu_lto_v1: symbol not defined
collect2.exe: error: ld returned 1 exit status
fx( 2L, 5 ) # should be 10
Error in fx(2L, 5) : could not find function “fx”
Do you know the issue that I encounter?
Trung Dung.