python - Installing rpy2 2.9.0 with R 3.4.1 -


i'm using winpython upgrade rpy2 version 2.9.0, , getting bit stuck. error (after dozens of warning c4068: unknown pragma)

.\rpy\rinterface\_rinterface.c(70): fatal error c1083: cannot open include file: 'r_ext/eventloop.h': no such file or directory   error: command 'c:\\program files (x86)\\microsoft visual studio 14.0\\vc\\bin\\x86_amd64\\cl.exe' failed exit status 2 

i googled bit , discovered "since r 3.4.0 headers unix-only facilities r_ext/getx11image.h, r_ext/quartzdevice.h , r_ext/eventloop.h no longer installed on windows" (https://www.r-statistics.com/2017/04/r-3-4-0-is-released-with-new-speed-upgrades-and-bug-fixes/).

so got these headers r source code , tried again, getting other errors:

 .\rpy\rinterface\_rinterface.c(205): error c2370: 'nainteger_type': redefinition; different storage class c:\users\ac32967\appdata\local\temp\pip-build-mtbg034f\rpy2\rpy\rinterface\na_values.c(135): note: see declaration of 'nainteger_type' .\rpy\rinterface\_rinterface.c(208): error c2370: 'nalogical_type': redefinition; different storage class c:\users\ac32967\appdata\local\temp\pip-build-mtbg034f\rpy2\rpy\rinterface\na_values.c(301): note: see declaration of 'nalogical_type' .\rpy\rinterface\_rinterface.c(211): error c2370: 'nareal_type': redefinition; different storage class c:\users\ac32967\appdata\local\temp\pip-build-mtbg034f\rpy2\rpy\rinterface\na_values.c(455): note: see declaration of 'nareal_type' .\rpy\rinterface\_rinterface.c(214): error c2370: 'nacomplex_type': redefinition; different storage class c:\users\ac32967\appdata\local\temp\pip-build-mtbg034f\rpy2\rpy\rinterface\na_values.c(669): note: see declaration of 'nacomplex_type' .\rpy\rinterface\_rinterface.c(217): error c2370: 'nacharacter_type': redefinition; different storage class c:\users\ac32967\appdata\local\temp\pip-build-mtbg034f\rpy2\rpy\rinterface\na_values.c(536): note: see declaration of 'nacharacter_type' .\rpy\rinterface\_rinterface.c(568): warning c4267: 'initializing': conversion 'size_t' 'int', possible loss of data .\rpy\rinterface\_rinterface.c(763): warning c4267: 'initializing': conversion 'size_t' 'int', possible loss of data .\rpy\rinterface\_rinterface.c(954): warning c4013: 'jump_to_toplevel' undefined; assuming extern returning int .\rpy\rinterface\_rinterface.c(1168): error c2057: expected constant expression .\rpy\rinterface\_rinterface.c(1168): error c2466: cannot allocate array of constant size 0 .\rpy\rinterface\_rinterface.c(1168): error c2133: 'options': unknown size .\rpy\rinterface\_rinterface.c(1191): warning c4996: 'strcpy': function or variable may unsafe. consider using strcpy_s instead. disable deprecation, use _crt_secure_no_warnings. see online details. .\rpy\rinterface\_rinterface.c(1199): warning c4996: 'strcpy': function or variable may unsafe. consider using strcpy_s instead. disable deprecation, use _crt_secure_no_warnings. see online details. .\rpy\rinterface\_rinterface.c(1201): warning c4996: 'strcpy': function or variable may unsafe. consider using strcpy_s instead. disable deprecation, use _crt_secure_no_warnings. see online details. .\rpy\rinterface\_rinterface.c(1203): warning c4996: 'strcpy': function or variable may unsafe. consider using strcpy_s instead. disable deprecation, use _crt_secure_no_warnings. see online details. .\rpy\rinterface\_rinterface.c(1204): warning c4996: 'strcat': function or variable may unsafe. consider using strcat_s instead. disable deprecation, use _crt_secure_no_warnings. see online details. .\rpy\rinterface\_rinterface.c(1211): warning c4028: formal parameter 2 different declaration .\rpy\rinterface\_rinterface.c(1218): error c2039: 'resetconsole': not member of 'structrstart' c:/environments/r/r-3.4.1/include\r_ext/rstartup.h(68): note: see declaration of 'structrstart' .\rpy\rinterface\_rinterface.c(1219): warning c4113: 'void (__cdecl *)()' differs in parameter lists 'blah3' .\rpy\rinterface\_rinterface.c(1235): warning c4244: 'function': conversion 'const py_ssize_t' 'int', possible loss of data .\rpy\rinterface\_rinterface.c(1615): warning c4244: '=': conversion 'py_ssize_t' 'int', possible loss of data .\rpy\rinterface\_rinterface.c(1717): warning c4133: '=': incompatible types - 'sexp' 'const char *' .\rpy\rinterface\_rinterface.c(1718): warning c4090: 'function': different 'const' qualifiers .\rpy\rinterface\_rinterface.c(2870): warning c4028: formal parameter 2 different declaration error: command 'c:\\program files (x86)\\microsoft visual studio 14.0\\vc\\bin\\x86_amd64\\cl.exe' failed exit status 2 

ideas? see version mismatches, , suppose need right headers r installation, can't find them anywhere.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -