参照胡荣兴在windows中创建R程序包简明指南,在 c:\pa 下创建了一个包freq,在windows cmd窗口可以运行rcmd build freq和rcmd build --binary freq,但是不能运行rcmd install freq,结果如下:
c:\pa>rcmd build freq
* checking for file 'freq/DESCRIPTION' ... OK
* preparing 'freq':
* checking DESCRIPTION meta-information ... OK
* checking for LF line-endings in source and make files
* checking for empty or unneeded directories
* building 'freq_1.0.tar.gz'
cygwin warning:
MS-DOS style path detected: c:/pa/freq_1.0.tar.gz
Preferred POSIX equivalent is: /cygdrive/c/pa/freq_1.0.tar.gz
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
c:\pa>rcmd build --binary freq
--binary is deprecated
* checking for file 'freq/DESCRIPTION' ... OK
* preparing 'freq':
* checking DESCRIPTION meta-information ... OK
* checking for LF line-endings in source and make files
* checking for empty or unneeded directories
* building binary distribution
* installing *source* package 'freq' ...
** R
** preparing package for lazy loading
This is vegan 1.17-12
** help
*** installing help indices
** building package indices ...
** testing if installed package can be loaded
* MD5 sums
packaged installation of 'freq' as freq_1.0.zip
* DONE (freq)
c:\pa>rcmd install freq
'install' is not recognized as an internal or external command,
operable program or batch file.
这是什么原因? 刚刚学习打包R,很多还不太清楚,请指教,谢谢!