楼主: heartfly1980
2578 2

如何修改linux版的R 软件包,使其能在windows下运行 [推广有奖]

  • 0关注
  • 0粉丝

已卖:384份资源

本科生

25%

还不是VIP/贵宾

-

威望
0
论坛币
3157 个
通用积分
0.3150
学术水平
0 点
热心指数
1 点
信用等级
0 点
经验
529 点
帖子
41
精华
0
在线时间
76 小时
注册时间
2009-11-14
最后登录
2022-3-30

楼主
heartfly1980 发表于 2011-2-10 10:34:20 |AI写论文
10论坛币
我要用的package 是 NonAddPenalty
url http://www.biostat.uzh.ch/research/software/nonaddpenalty.html
网上只有linux 版本的 ,请问如何修改软件包 才能在 windows下 使用该包?

关键词:Windows Window Linux wind Dow 运行 Windows 软件包 Linux

沙发
soccy 发表于 2011-2-11 10:51:59
下载rtools,然后自己编译它。

藤椅
sasmixed 发表于 2011-2-12 02:57:59
I tried to build a windows package for you, but failed to install on my windows machine due to errors.

Build log

* checking for file 'NonAddPenalty/DESCRIPTION' ... OK
* preparing 'NonAddPenalty':
* checking DESCRIPTION meta-information ... OK
* cleaning src
* checking whether 'INDEX' is up-to-date ... NO
* use '--force' to remove the existing 'INDEX'
* excluding invalid files
Subdirectory 'R' contains invalid file names:
  zzz.0
Subdirectory 'man' contains invalid file names:
  RUN.ME big.dvi big.pdf
* checking for LF line-endings in source and make files
* checking for empty or unneeded directories
* building binary distribution
gcc -I"C:/PROGRA~1/R/R-212~1.1/include"         -O3 -Wall  -std=gnu99 -c AIC.c -o AIC.o
gcc -I"C:/PROGRA~1/R/R-212~1.1/include"         -O3 -Wall  -std=gnu99 -c GridMISE.c -o GridMISE.o
gcc -I"C:/PROGRA~1/R/R-212~1.1/include"         -O3 -Wall  -std=gnu99 -c Iteration.c -o Iteration.o
gcc -I"C:/PROGRA~1/R/R-212~1.1/include"         -O3 -Wall  -std=gnu99 -c bivariate.c -o bivariate.o
gcc -I"C:/PROGRA~1/R/R-212~1.1/include"         -O3 -Wall  -std=gnu99 -c ll.c -o ll.o
gcc -I"C:/PROGRA~1/R/R-212~1.1/include"         -O3 -Wall  -std=gnu99 -c matalg.c -o matalg.o
gcc -I"C:/PROGRA~1/R/R-212~1.1/include"         -O3 -Wall  -std=gnu99 -c matrixS.c -o matrixS.o
gcc -I"C:/PROGRA~1/R/R-212~1.1/include"         -O3 -Wall  -std=gnu99 -c matrixZ.c -o matrixZ.o
gcc -I"C:/PROGRA~1/R/R-212~1.1/include"         -O3 -Wall  -std=gnu99 -c options.c -o options.o
gcc -shared -s -static-libgcc -o NonAddPenalty.dll tmp.def AIC.o GridMISE.o Iteration.o bivariate.o ll.o matalg.o matrixS.o matrixZ.o options.o -LC:/PROGRA~1/R/R-212~1.1/bin/i386 -lR
.................

packaged installation of 'NonAddPenalty' as NonAddPenalty_0.7-9.zip
* DONE (NonAddPenalty)

Try if you can install the attached on you computer.

Good luck.





1# heartfly1980

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-8 19:40