由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - 请教关于 build R package in windows 的问题(有包子)
相关主题
问大家一道SAS认证题怎么避免sas batch模式打开sas文件
请问一个在MAC系统上写成的R的package如何在windows下用呢?请教一个关于PCA的问题
[合集] Variable selection with 2000 + variables.一个关于macro的问题,多谢。
Help on Running C code in R问个R的问题 不明白这个error message
one statistic interview question请教一个很白痴的回归分析的问题
variable and covariate 的区别?[合集] 电话面试完了,肯定没戏,大家帮我看看题目,就算学习吧
Need urgent helps: How to use DDE to import password-protected excel file into SAS?SAS code help!! thanks
急问,在线等:SAS adv certification Question about SELECT v.s IF/THEN ELSE一道SAS面试题,关于dummy variable
相关话题的讨论汇总
话题: warning话题: function话题: variable话题: unused话题: progra
进入Statistics版参与讨论
1 (共1页)
R*******c
发帖数: 249
1
搞了三四天了,还是没成功,实在是崩溃了。。。只能上来请大牛们帮忙看看问题出在哪?
从网上下载了一个R的package(一个zip文件),这个包是在mac上build的,在mac里运行没有
问题,我现在想在windows下用这个包,直接通过R里面的install package from local
zip file会有错误如下:
Error in gzfile(file, "r") : cannot open the connection
In addition: Warning messages:
1: In unzip(zipname, exdir = dest) : error 1 in extracting from zip
file
2: In gzfile(file, "r") :
cannot open compressed file 'curves2_1.0.1.tar.gz/DESCRIPTION',
probable reason 'No such file or directory'
所以决定先将zip文件解压缩成文件夹,然后在windows下把这个包build成一个新的包(
或者zip 文件)装了Rtools,改了环境变量,在dos下输入命令:
Rcmd build --binary curves2
最后dos窗口仍然显示有错误,(虽然最后好像得到了一个zip文件,不过用R试了一
下,这个包还是没用的)这里想请牛人帮忙看看错误在哪里啊?
Dos 窗口(error显示在最后):
C:\Users\z4432045>Rcmd build --binary curves2
* checking for file 'curves2/DESCRIPTION' ... OK
* preparing 'curves2':
* checking DESCRIPTION meta-information ... OK
* cleaning src
* checking whether 'INDEX' is up-to-date ...Warning in
readLines(oldindex) : inc
omplete final line found on 'INDEX'
NO
* use '--force' to remove the existing 'INDEX'
cygwin warning:
MS-DOS style path detected: C:/Users/z4432045/curves2_1.0.1.tar
Preferred POSIX equivalent is:
/cygdrive/c/Users/z4432045/curves2_1.0.1.tar
CYGWIN environment variable option "nodosfilewarning" turns off this
warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
cygwin warning:
MS-DOS style path detected: C:/Users/z4432045/curves2_1.0.1.tar
Preferred POSIX equivalent is:
/cygdrive/c/Users/z4432045/curves2_1.0.1.tar
CYGWIN environment variable option "nodosfilewarning" turns off this
warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
* checking for LF line-endings in source and make files
* checking for empty or unneeded directories
* building binary distribution
* installing *source* package 'curves2' ...
Using auto-selected zip option '--use-zip-data'
** libs
cygwin warning:
MS-DOS style path detected: C:/PROGRA~1/R/R-
212~1.2/etc/i386/Makeconf
Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/R/R-
212~1.2/etc/i386/Makec
onf
CYGWIN environment variable option "nodosfilewarning" turns off this
warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
gcc -I"C:/PROGRA~1/R/R-212~1.2/include" -O3 -Wall -std=gnu99
-c dcdflib
.c -o dcdflib.o
dcdflib.c: In function 'cdfbin':
dcdflib.c:1889:5: warning: suggest parentheses around '&&' within '||'
dcdflib.c: In function 'cdfgam':
dcdflib.c:3551:9: warning: suggest parentheses around '&&' within '||'
dcdflib.c: In function 'E0000':
dcdflib.c:6410:5: warning: suggest parentheses around '&&' within '||'
dcdflib.c:6434:5: warning: suggest parentheses around '&&' within '||'
dcdflib.c:6475:5: warning: suggest parentheses around '&&' within '||'
dcdflib.c: In function 'E0001':
dcdflib.c:6877:5: warning: suggest parentheses around '&&' within '||'
gcc -I"C:/PROGRA~1/R/R-212~1.2/include" -O3 -Wall -std=gnu99
-c ipmpar.
c -o ipmpar.o
gcc -I"C:/PROGRA~1/R/R-212~1.2/include" -O3 -Wall -std=gnu99
-c mcmc.c
-o mcmc.o
mcmc.c: In function 'Allocate_Memory':
mcmc.c:76:10: warning: unused variable 'j'
mcmc.c:76:7: warning: unused variable 'i'
mcmc.c: In function 'Read_In_Prior':
mcmc.c:152:7: warning: unused variable 'i'
mcmc.c: In function 'Init_Output':
mcmc.c:168:7: warning: unused variable 'i'
mcmc.c: In function 'mui':
mcmc.c:186:18: warning: unused variable 'step'
mcmc.c:186:14: warning: unused variable 'up'
mcmc.c:186:9: warning: unused variable 'low'
mcmc.c:185:10: warning: unused variable 'k'
mcmc.c: In function 'fhA':
mcmc.c:433:25: warning: unused variable 't'
mcmc.c: In function 'densPhi':
mcmc.c:561:30: warning: unused variable 'step'
mcmc.c:561:26: warning: unused variable 'up'
mcmc.c:561:21: warning: unused variable 'low'
mcmc.c: In function 'densPhiQ1':
mcmc.c:599:30: warning: unused variable 'step'
mcmc.c:599:26: warning: unused variable 'up'
mcmc.c:599:21: warning: unused variable 'low'
mcmc.c: In function 'gibbs':
mcmc.c:775:14: warning: unused variable 'i'
mcmc.c: At top level:
cdflib.h:45:13: warning: 'E0000' declared 'static' but never defined
cdflib.h:52:13: warning: 'E0001' declared 'static' but never defined
mcmc.c: In function 'densPhiQ1':
mcmc.c:599:43: warning: 'm_p' may be used uninitialized in this
function
mcmc.c:599:48: warning: 's_p' may be used uninitialized in this
function
mcmc.c: In function 'fAC':
mcmc.c:472:36: warning: 'ha' may be used uninitialized in this
function
mcmc.c:472:40: warning: 'ma' may be used uninitialized in this
function
gcc -I"C:/PROGRA~1/R/R-212~1.2/include" -O3 -Wall -std=gnu99
-c network
s.c -o networks.o
networks.c: In function 'Get_Distance':
networks.c:68:14: warning: unused variable 'd2'
networks.c: At top level:
cdflib.h:45:13: warning: 'E0000' declared 'static' but never defined
cdflib.h:52:13: warning: 'E0001' declared 'static' but never defined
gcc -I"C:/PROGRA~1/R/R-212~1.2/include" -O3 -Wall -std=gnu99
-c profile
.c -o profile.o
cdflib.h:45:13: warning: 'E0000' declared 'static' but never defined
cdflib.h:52:13: warning: 'E0001' declared 'static' but never defined
gcc -I"C:/PROGRA~1/R/R-212~1.2/include" -O3 -Wall -std=gnu99
-c rand.c
-o rand.o
rand.c:15:0: warning: ignoring #pragma warning
rand.c: In function 'pdf_norm_trunc':
rand.c:221:10: warning: unused variable 'u'
rand.c: At top level:
cdflib.h:45:13: warning: 'E0000' declared 'static' but never defined
cdflib.h:52:13: warning: 'E0001' declared 'static' but never defined
rand.c:4:13: warning: 'is1' defined but not used
rand.c:4:28: warning: 'is2' defined but not used
rand.c:5:12: warning: 'set' defined but not used
rand.c: In function 'mvnS_rand':
rand.c:512:5: warning: 'det_half' is used uninitialized in this
function
gcc -I"C:/PROGRA~1/R/R-212~1.2/include" -O3 -Wall -std=gnu99
-c splines
.c -o splines.o
splines.c: In function 'spline_value':
splines.c:114:9: warning: passing argument 1 of 'REAL' from
incompatible pointer
type
C:/PROGRA~1/R/R-212~1.2/include/Rinternals.h:382:10: note: expected
'SEXP' but a
rgument is of type 'double *'
gcc -I"C:/PROGRA~1/R/R-212~1.2/include" -O3 -Wall -std=gnu99
-c util.c
-o util.o
util.c: In function 'd_chol_decomp':
util.c:72:3: warning: implicit declaration of function 'dpotrf_'
util.c: In function 'cmatrix':
util.c:121:10: warning: unused variable 'j'
util.c: In function 'qr_solve':
util.c:506:5: warning: implicit declaration of function 'dqrdc2_'
util.c:521:5: warning: implicit declaration of function 'dqrcf_'
util.c:485:11: warning: unused variable 'vmax'
util.c: In function 'inverse':
util.c:544:9: warning: unused variable 'j'
util.c: In function 'invtr':
util.c:680:3: warning: implicit declaration of function 'dtrtri_'
util.c: At top level:
util.c:787:1: warning: "/*" within comment
util.c:788:1: warning: "/*" within comment
util.c:789:1: warning: "/*" within comment
util.c:790:1: warning: "/*" within comment
util.c:791:1: warning: "/*" within comment
util.c:792:1: warning: "/*" within comment
util.c:793:1: warning: "/*" within comment
util.c: In function 'slice':
util.c:816:3: warning: suggest parentheses around comparison in
operand of '&'
util.c:825:3: warning: suggest parentheses around comparison in
operand of '&'
util.c: In function 'r_gauss':
util.c:948:10: warning: unused variable 'j'
util.c: In function 'moralize':
util.c:1040:5: warning: comparisons like 'X<=Y<=Z' do not have their
mathematica
l meaning
util.c:1040:5: warning: statement with no effect
util.c: In function 'min':
util.c:858:1: warning: control reaches end of non-void function
gcc -shared -s -static-libgcc -o curves2.dll tmp.def dcdflib.o
ipmpar.o mcmc.o n
etworks.o profile.o rand.o splines.o util.o -LC:/PROGRA~1/R/R-
212~1.2/bin/i386 -
lR
util.o:util.c:(.text+0x221): undefined reference to `dpotrf_'
util.o:util.c:(.text+0x1189): undefined reference to `dtrtri_'
collect2: ld returned 1 exit status
ERROR: compilation failed for package 'curves2'
* removing
'C:/Users/z4432045/AppData/Local/Temp/RtmpGRtc6x/Rinst2e7d684a/curves
2'
ERROR
Installation failed
C:\Users\z4432045>
1 (共1页)
进入Statistics版参与讨论
相关主题
一道SAS面试题,关于dummy variableone statistic interview question
请教建模中ordinal var的处理方法variable and covariate 的区别?
sampling weight variable怎么用到linear regression里啊?Need urgent helps: How to use DDE to import password-protected excel file into SAS?
Hierarchical linear regression急问,在线等:SAS adv certification Question about SELECT v.s IF/THEN ELSE
问大家一道SAS认证题怎么避免sas batch模式打开sas文件
请问一个在MAC系统上写成的R的package如何在windows下用呢?请教一个关于PCA的问题
[合集] Variable selection with 2000 + variables.一个关于macro的问题,多谢。
Help on Running C code in R问个R的问题 不明白这个error message
相关话题的讨论汇总
话题: warning话题: function话题: variable话题: unused话题: progra