简体   繁体   English

R-Studio版本0.98.953 - 启动时控制台中的错误消息

[英]Version 0.98.953 of R-Studio - Error message in console when starting

I updated R-Studio to the latest version (Version 0.98.953). 我将R-Studio更新到最新版本(版本0.98.953)。 When starting R-Studio I get the following in the console: 启动R-Studio时,我在控制台中获得以下内容:

Error installing package: "\\psf\Home\Documents"
CMD.EXE wurde mit dem oben angegebenen Pfad als aktuellem Verzeichnis gestartet.
UNC-Pfade werden nicht unterst�tzt.
Stattdessen wird das Windows-Verzeichnis als aktuelles Verzeichnis gesetzt.
CMD.Exe will be started with the path given above as the current directory
UNC-Path will not be supported
Instead the Windows directory will be set to the current directory
* installing *source* package 'rstudio' ...
** R
** inst
Warnung in file.create(to[okay]) :
  kann Datei '\psf/Home/Documents/R/win-library/3.0/rstudio/CITATION' nicht erzeugen.     Grund 'No such file or directory'
Warning in file.create(to[okay]) :
file \psf/Home/Documents/R/win-library/3.0/rstudio/CITATION'
cannot be created. Reason 'No such file or directory'
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
ERROR: loading failed
* removing '\\psf/Home/Documents/R/win-library/3.0/rstudio'

Error installing package: "\\psf\Home\Documents"
CMD.EXE wurde mit dem oben angegebenen Pfad als aktuellem Verzeichnis gestartet.
UNC-Pfade werden nicht unterst�tzt.
Stattdessen wird das Windows-Verzeichnis als aktuelles Verzeichnis gesetzt.
CMD.Exe will be started with the path given above as the current directory
UNC-Path will not be supported
Instead the Windows directory will be set to the current directory
* installing *source* package 'manipulate' ...
** R
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
ERROR: loading failed
* removing '\\psf/Home/Documents/R/win-library/3.0/manipulate'

Does anybody know what is wrong / what I have to do? 有人知道什么是错的/我必须做什么吗? I get the same error message on another PC with the same version of R-Studio. 我在另一台具有相同版本的R-Studio的PC上收到相同的错误消息。

Thank you in advance! 先感谢您!

RStudio installs the packages manipulate and rstudio your library when it starts up, if it detects that those packages are missing. 如果库检测到缺少这些包,则RStudio会在启动时安装包manipulaterstudio库。 The packages support various internal RStudio tools (for instance, manipulate supplies the plot manipulation widgets). 这些包支持各种内部RStudio工具(例如, manipulate提供绘图操作小部件)。 It looks like it's having trouble doing this because your user library is on a UNC network path ( \\\\psf ). 看起来它在执行此操作时遇到了麻烦,因为您的用户库位于UNC网络路径( \\\\psf )上。 Try the following: 请尝试以下方法:

  1. Create a folder on the local disk in a directory you have write access to 在您具有写入权限的目录中的本地磁盘上创建一个文件夹
  2. Add that folder to the R library path list (see here for details) 将该文件夹添加到R库路径列表(有关详细信息,请参阅此处
  3. Restart RStudio 重启RStudio

RStudio should install the packages to your new writeable library. RStudio应该将软件包安装到新的可写库中。

I had pretty much the same issue after updating to 0.98.953. 更新到0.98.953后,我遇到了同样的问题。 The solution I came up with deals with the same issue that Jonathan referred to in his answer , but isn't as fussy as creating a new R folder and adding it to the R library path list. 我提出的解决方案处理了Jonathan在他的回答中提到的相同问题,但并不像创建新的R文件夹并将其添加到R库路径列表那样繁琐。

Let's assume that \\\\psf\\Home\\Documents refers to the same location as C:\\Users\\yourusername\\Documents . 假设\\\\psf\\Home\\Documents指向与C:\\Users\\yourusername\\Documents相同的位置。

Open your .Renviron file (if you have one; if you don't, create an empty text file named .Renviron in your Documents folder—probably something like C:\\Users\\yourusername\\Documents ) and add the following (adjusting the paths as necessary): 打开.Renviron文件(如果有的话;如果没有, .Renviron在Documents文件夹中创建一个名为.Renviron的空文本文件 - 可能类似于C:\\Users\\yourusername\\Documents )并添加以下内容(调整路径)有必要的):

HOME="C:/Users/yourusername/Documents"
R_LIBS_USER="C:/Users/yourusername/Documents/R/win-library/3.0"
R_USER="C:/Users/yourusername/Documents"

Make sure to use regular slashes ( / ) instead of backslashes ( " ) in the paths! 确保在路径中使用常规斜杠( / )而不是反斜杠( " )!

After saving your changes to .Renviron , you should no longer have the error when you start RStudio. 将更改保存到.Renviron ,启动RStudio时不应再出现错误。

I think it is probably unnecessary to add the HOME= line to your .Renviron file, but I did it just in case. 我认为可能没有必要将HOME=行添加到.Renviron文件中,但我这样做是为了以防万一。

None of the proposals where ok for me, the most i have obtained is 对我来说没有提议,我获得的最多是

first manually install manipulate and rstudio packages in my personal library 首先在我的个人库中手动安装操作和rstudio包

second change name of the original folder in packages directory that means total functionality of the package. 第二个更改包目录中原始文件夹的名称,表示包的总功能。

Then I get another error as the procedure to install is unsuccesful (package not found as has been renamed). 然后我得到另一个错误,因为安装的过程是不成功的(找不到已重命名的包)。

Does any body know Where is the order to install them? 有没有人知道安装它们的顺序在哪里? if it can be corrected the message will probably dissappear 如果可以纠正,消息可能会消失

I guess that there is some problem derived from a Documents/R/win-library/ 3.1 y and R/R- 3.1.2 /library that invites rstudio to reject the package due to presumption of obsolete versions 我想从Documents / R / win-library / 3.1 y和R / R- 3.1.2 /库中得出一些问题,由于推定过时的版本而邀请rstudio拒绝包

Cheers 干杯

I am running Rstudio in windows 8.1 via Parallels Desktop 10 for Mac 我通过Parallels Desktop 10 for Mac在Windows 8.1中运行Rstudio

in my case "\\psf" is my Z: drive 在我的情况下,“\\ psf”是我的Z:驱动器

So I made the ".Renviron." 所以我做了“.Renviron”。 file in Z:\\Documents (remember the last ".") else you will get an error message. 文件在Z:\\ Documents(记住最后一个“。”)否则你会收到一条错误信息。

The content in the ".Renviron." “.Renviron”中的内容。 file was: 档案是:

HOME="Z:\\Documents" HOME = “Z:\\文件”

R_LIBS_USER="Z:\\Documents\\R\\win-library\\3.1" R_LIBS_USER = “Z:\\文件\\ r \\赢库\\ 3.1”

R_USER="Z:\\Documents" R_USER = “Z:\\文件”

You might have to change "3.1" within R_LIBS_USER="Z:\\Documents\\R\\win-library\\3.1" depending on the version you are 您可能需要在R_LIBS_USER =“Z:\\ Documents \\ R \\ win-library \\ 3.1”中更改“3.1”,具体取决于您的版本

I solved this issue by adding 我通过添加解决了这个问题

.libPaths("C:\\a\\path\\i\\can\\write\\to\\R-libs")

in my .Rprofile 在我的.Rprofile中

(check ?Startup if you need guidance regarding .Rprofile) (检查?如果您需要有关.Rprofile的指导,请启动)

As Jonathan said: 正如乔纳森所说:

RStudio installs the packages manipulate and rstudio [to] your library when it starts up, if it detects that those packages are missing. 如果检测到这些包丢失,RStudio会在启动时安装包操作和rstudio [到]库。

To resolve the issue navigate to C:\\Program Files\\RStudio\\R\\modules\\SessionPackages.R and comment out the two lines 要解决此问题,请导航到C:\\ Program Files \\ RStudio \\ R \\ modules \\ SessionPackages.R并注释掉这两行

#updateIfNecessary("rstudio")
#updateIfNecessary("manipulate")

You will no longer have the startup error but make sure the packages ARE kept up to date. 您将不再有启动错误,但请确保包保持最新。

Best 最好

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM