Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何安装RSAP软件包-SAP connector for R_R_Git_Sap - Fatal编程技术网

如何安装RSAP软件包-SAP connector for R

如何安装RSAP软件包-SAP connector for R,r,git,sap,R,Git,Sap,我的要求是使用R分析来自我公司SAP系统的数据。我在本地计算机上使用R v.3.2.4,并且能够通过SAPGUI登录SAP 我发现,要将R连接到SAP,您需要RSAP软件包,要安装它,您需要在本地计算机上安装SAP NetWeaver RFC SDK 我尝试了以下步骤,但仍坚持在R中安装RSAP(步骤12) 如果您能给我一些建议,我将不胜感激 步骤根据: 步骤根据:在上安装文件 下面是错误: Downloading GitHub repo piersharding/RSAP@master fr

我的要求是使用R分析来自我公司SAP系统的数据。我在本地计算机上使用R v.3.2.4,并且能够通过SAPGUI登录SAP

我发现,要将R连接到SAP,您需要RSAP软件包,要安装它,您需要在本地计算机上安装SAP NetWeaver RFC SDK

我尝试了以下步骤,但仍坚持在R中安装RSAP(步骤12)

如果您能给我一些建议,我将不胜感激

步骤根据:

步骤根据:在上安装文件

下面是错误:

Downloading GitHub repo piersharding/RSAP@master from URL h t t p s ://api.github.com/repos/piersharding/RSAP/zipball/master    
Error in curl::curl_fetch_memory(url, handle = handle) : 
  Problem with the SSL CA cert (path? access rights?)    
In addition: Warning message:
Username parameter is deprecated. Please use piersharding/RSAP 
我尝试了安装文件中建议的另一件事

12] In R execute:
install.packages("RSAP", repos=c("h t t p://piersharding.com/R"), type="source")
这一次,系统做了更多的工作,但仍然没有成功:

Installing package into ‘\\RWAMSEEFP1/U_kosinskr$/My Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
Warning in install.packages :
  dependencies ‘yaml’, ‘reshape’ are not available
trying URL 'http://piersharding.com/R/src/contrib/RSAP_0.9.tar.gz'
Content type 'application/x-gzip' length 69780 bytes (68 KB)
downloaded 68 KB

* installing *source* package 'RSAP' ...
** libs
Warning: this package has a non-empty 'configure.win' file,
so building only the main architecture

gcc -m64 -I"C:/PROGRA~1/R/R-32~1.4/include" -DNDEBUG -I. -I"C:/nwrfcsdk/include" -DSAPwithUNICODE -DUNICODE -D_UNICODE -D_AFXDLL -D_CRT_NON_CONFORMING_SWPRINTFS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DSAPonNT -DSAP_PLATFORM_MAKENAME=ntintel     -I"d:/RCompile/r-compiling/local/local323/include"     -O2 -Wall  -std=gnu99 -mtune=core2 -c RSAP.c -o RSAP.o
In file included from C:/nwrfcsdk/include/sapnwrfc.h:7:0,
                 from RSAP.c:41:
C:/nwrfcsdk/include/sapucx.h:562:5: warning: 'align' attribute directive ignored [-Wattributes]
In file included from RSAP.c:41:0:
C:/nwrfcsdk/include/sapnwrfc.h:28:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
RSAP.c: In function 'u8to16c':
RSAP.c:133:12: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
RSAP.c: In function 'u8to16':
RSAP.c:150:12: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
RSAP.c: In function 'u8to16r':
RSAP.c:167:12: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
RSAP.c: In function 'u16to8c':
RSAP.c:184:12: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
RSAP.c: In function 'u16to8':
RSAP.c:208:12: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
RSAP.c: At top level:
C:/nwrfcsdk/include/sapuc.h:853:24: warning: 'sccsidU16' defined but not used [-Wunused-variable]
gcc -m64 -shared -s -static-libgcc -o RSAP.dll tmp.def RSAP.o -L. -LC:/nwrfcsdk/lib -lsapnwrfc -llibsapucum -Ld:/RCompile/r-compiling/local/local323/lib/x64 -Ld:/RCompile/r-compiling/local/local323/lib -LC:/PROGRA~1/R/R-32~1.4/bin/x64 -lR
installing to \\RWAMSEEFP1/U_kosinskr$/My Documents/R/win-library/3.2/RSAP/libs/x64
** R
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Warning in library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE) :
  there is no package called 'RSAP'
Error: loading failed
Execution halted
ERROR: loading failed
* removing '\\RWAMSEEFP1/U_kosinskr$/My Documents/R/win-library/3.2/RSAP'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-32~1.4/bin/x64/R" CMD INSTALL -l "\\RWAMSEEFP1\U_kosinskr$\My Documents\R\win-library\3.2" C:\Users\kosinskr\AppData\Local\Temp\Rtmp40cQJZ/downloaded_packages/RSAP_0.9.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘RSAP’ had non-zero exit status

The downloaded source packages are in
    ‘C:\Users\kosinskr\AppData\Local\Temp\Rtmp40cQJZ\downloaded_packages’
RTools安装设置

目的地位置:
c:\Rtools

安装类型:
软件包编写安装

选定组件:

R toolset
Cygwin DLLs
R 2.15.x-R 3.2.x toolchain
R 3.3.x+ 32 bit toolchain
R 3.3.x+ 64 bit toolchain
其他任务:

Change system PATH to:
PATH=c:\Rtools\bin;c:\Rtools\gcc-4.6.3\bin;C:\Program Files (x86)\Java\jre6\bin;C:\Program Files\Java\jre6\bin;C:\Windows\system32;
[truncated]
Save version information to registry

很抱歉没有帮助,但是
install\u github
命令传递了一些参数,这些参数期望事情发生在位置
C:\\nwrfcsdk\\include
\lib
。你们研究过这个吗?这是安装文件所说的,但也许你们是对的,我会看一看。我还怀疑RTools不能按预期工作,或者GitHub回购问题。但这只是猜测,需要一些启发;)尝试安装另一个软件包以检查Rtoolchain是否正常工作。说
devtools::install\u github(“hadley/ggplot2”)
。实际上,它不起作用,因为我遇到了以下错误:
下载github repo hadley/ggplot2@master从URLhttps://api.github.com/repos/hadley/ggplot2/zipball/master curl::curl\u fetch\u内存(url,handle=handle)中出错:SSL CA证书(路径?访问权限?)
这是否意味着这是一个问题?这可能是兼容性问题,或者只是将某些文件放在某个目录中?也许?很抱歉没有帮助,但是
install\u github
命令传递了一些参数,这些参数期望东西位于位置
C:\\nwrfcsdk\\include
\lib
。你们研究过这个吗?这是安装文件所说的,但也许你们是对的,我会看一看。我还怀疑RTools不能按预期工作,或者GitHub回购问题。但这只是猜测,需要一些启发;)尝试安装另一个软件包以检查Rtoolchain是否正常工作。说
devtools::install\u github(“hadley/ggplot2”)
。实际上,它不起作用,因为我遇到了以下错误:
下载github repo hadley/ggplot2@master从URLhttps://api.github.com/repos/hadley/ggplot2/zipball/master curl::curl\u fetch\u内存(url,handle=handle)中出错:SSL CA证书(路径?访问权限?)
这是否意味着这是一个问题?这可能是一个兼容性问题,或者只是将某些文件放在某个目录中?也许?
R toolset
Cygwin DLLs
R 2.15.x-R 3.2.x toolchain
R 3.3.x+ 32 bit toolchain
R 3.3.x+ 64 bit toolchain
Change system PATH to:
PATH=c:\Rtools\bin;c:\Rtools\gcc-4.6.3\bin;C:\Program Files (x86)\Java\jre6\bin;C:\Program Files\Java\jre6\bin;C:\Windows\system32;
[truncated]
Save version information to registry