简体   繁体   English

为R加载rLingo软件包

[英]loading rLingo package for R

Working with R (ver 3.4.1) and Lingo (ver 16), attempting to install rlingo package using the provided direction within Lingo documentation via command prompt. 使用R(版本3.4.1)和Lingo(版本16),尝试通过命令提示符使用Lingo文档中提供的说明安装rlingo软件包。

I get the following error message: 我收到以下错误消息:

******************
Checking for R...
Checking for Rtools...
Checking for LINGO16...
Checking source package rLingo_16.0.tar.gz...
Ok.. Installing...
* installing to library 'C:/Users/mike kennedy/Documents/R/win-library/3.4'
* installing *source* package 'rLingo' ...

   **********************************************
   WARNING: this package has a configure script
         It probably needs manual configuration
   **********************************************


** libs
c:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-34~1.1/include" -DNDEBUG -I"C:\LINGO64_16\/Programming Samples"    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -std=gnu99 -mtune=core2 -c rLingo.c -o rLingo.o

c:/Rtools/mingw_64/bin/gcc -shared -s -static-libgcc -o rLingo.dll tmp.def rLingo.o -LC:\LINGO64_16\/ -lLingd64_16 -Wl,--enable-stdcall-fixup -Ld:/Compiler/gcc-4.9.3/local330/lib/x64 -Ld:/Compiler/gcc-4.9.3/local330/lib -LC:/PROGRA~1/R/R-34~1.1/bin/x64 -lR

installing to C:/Users/mike kennedy/Documents/R/win-library/3.4/rLingo/libs/x64
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded

Error: package or namespace load failed for 'rLingo' in inDL(x, as.logical(local), as.logical(now), ...): unable to load shared object 'C:/Users/mike kennedy/Documents/R/win-library/3.4/rLingo/libs/x64/rLingo.dll':
LoadLibrary failure:  The specified module could not be found.

Error: loading failed
Execution halted
ERROR: loading failed
* removing 'C:/Users/Documents/R/win-library/3.4/rLingo'
* restoring previous 'C:/Users/Documents/R/win-library/3.4/rLingo'
Finished
************************

I checked the Lingo directory and the 'install-rlingo' batch file is there. 我检查了Lingo目录,并找到了“ install-rlingo”批处理文件。 Any help in correcting the installation issue is greatly appreciated. 非常感谢您提供任何纠正安装问题的帮助。

WE found the solution to this issue. 我们找到了解决此问题的方法。 Updated our LINGO application to ver 17. The rlingo package loads properly now. 已将我们的LINGO应用程序更新为版本17。rlingo软件包现在可以正确加载。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM