cygwin在构建R软件包时发出警告

cygwin在构建R软件包时发出警告

本文介绍了cygwin在构建R软件包时发出警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Windows构建自己的软件包.我安装了所需的一切,并且运行R CMD build mypackageR CMD INSTALL mypackage似乎运行良好.但是,当我运行build命令时,会收到cygwin的警告:

I'm trying to build my own package using Windows. I installed everything I need, and running R CMD build mypackage and R CMD INSTALL mypackage seem to run fine. when I run the build command, though, I get a warning from cygwin:

cygwin warning:
  MS-DOS style path detected: C:/Documents and Settings/e_sander/My Documents/mypackage_1.0.tar.gz
  Preferred POSIX equivalent is: /cygdrive/c/Documents and Settings/e_sander/My Documents/mypackage_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

我确实去了推荐的网站,但是我对cygwin或linux的了解不多,所以我不确定我需要做什么.我意识到在cygwin中不建议使用MS-DOS样式路径,但是我不确定如何更改它,因为我正在运行Windows,这就是我需要的路径.我也没有注意到我的软件包的任何问题,至少当我将其安装到计算机上时(尽管我没有使用过tarball,但我已经打开了它,一切看起来都很好).所以这就是我要弄清楚的:

I did go to the recommended website, but I don't know much about cygwin or linux so I'm not sure there's anything I need to do. I realize that using the MS-DOS style path is deprecated and not recommended in cygwin, but I'm not sure how to change that, since I'm running Windows and that's the path I need. I also haven't noticed any problems with my package, at least when I install it to my computer (and although I haven't used the tarball, I've opened it and everything looks fine). So here's what I'm trying to figure out:

  • 按原样保留路径会以任何方式影响我的包裹吗?

  • Does leaving the path as is affect my package in any way?

如果是这样,它将如何对我的包裹产生不利影响?

If so, how could it adversely affect my package?

推荐答案

这只是一个警告,它告诉您如何禁用它.它不会影响任何东西.如果您希望它消失,请从您的shell中运行它:

This is just a warning and it tells you how to disable it. It doesn't affect anything. If you want it to go away, run this from your shell:

export CYGWIN="nodosfilewarning"

或者您可以将C:安装到/c/(请参阅man mount).

Or you could mount C: to /c/ (see man mount).

这篇关于cygwin在构建R软件包时发出警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 04:55