简体   繁体   English

未找到 rDotNet CLRServer.exe

[英]rDotNet CLRServer.exe not found

I am trying to access a C# dll within R using rDotNet.我正在尝试使用 rDotNet 访问 R 中的 C# dll。 Note that I am not at all well versed in C# and Visual studio.请注意,我根本不精通 C# 和 Visual Studio。

In R, when I try to run the .cinit() function for the first time, I get:在 R 中,当我第一次尝试运行.cinit()函数时,我得到:

NOTE: starting CLR server
Warning message:
In system2(exe, args, wait = FALSE, stderr = FALSE, stdout = FALSE) :
  '"C:/Users/User/Dropbox/My PC (DESKTOP-T9I5J)/Documents/R/win- 
library/3.6/rDotNet/server/bin/Debug/CLRServer.exe"' not found

Subsequent attempts to use any functions such as .cnew results in:随后尝试使用任何函数(例如.cnew导致:

Error in internal_cnew(classname, argv) : 
problem communicating with CLR, could not complete message

I have done multiple searches for CLRServer.exe , both on my computer and on the internet.我在我的计算机和互联网上对CLRServer.exe进行了多次搜索。 There is almost no reference to it anywhere!几乎没有任何地方提到它! The only place where the existence of this file is mentioned is within the rDotNet documentation, and I otherwise have absolutely no idea where to obtain this .exe.提到这个文件存在的唯一地方是在 rDotNet 文档中,否则我完全不知道从哪里获得这个 .exe。

I have rDotNet installed both through R and as a package in Visual Studio.我通过 R 安装了 rDotNet,并作为 Visual Studio 中的一个包安装。 I tracked down the nuget and msbuild files and added them to my path.我追踪了nugetmsbuild文件并将它们添加到我的路径中。 All I need to do is locate this CLRServer.exe.我需要做的就是找到这个 CLRServer.exe。

The source code is here in this repo and if you don't know how to build a dotnet project then the binary can be downloaded from here:源代码在此 repo 中,如果您不知道如何构建 dotnet 项目,则可以从此处下载二进制文件:

https://github.com/tr8dr/.Net-Bridge/tree/master/bin/Debug https://github.com/tr8dr/.Net-Bridge/tree/master/bin/Debug

Grab all the files(executable &dlls)抓取所有文件(可执行文件和dll)

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

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