为R加载rLingo包

时间:2017-08-17 19:07:35

标签: r lingo

使用R(版本3.4.1)和Lingo(版本16),尝试使用Lingo文档中提供的方向通过命令提示符安装rlingo软件包。

我收到以下错误消息:

******************
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
************************

我检查了Lingo目录和' install-rlingo'批处理文件在那里。非常感谢任何纠正安装问题的帮助。

1 个答案:

答案 0 :(得分:0)

我们找到了解决这个问题的方法。将我们的LINGO应用程序更新到版本17.现在正在正确加载rlingo包。