用于Visual Studio的R工具 - 错误:System.ArgumentException:该包没有ProvideToolWindowAttribute

use*_*890 5 r visual-studio

我刚刚使用R Tool(在Win 7 Enterprise上)安装了Microsoft Visual Studio 2017(社区版).

R似乎工作正常(我可以创建变量和绘图),但'R Interactive'窗口显示以下错误消息:

An exception was encountered while constructing the content of this frame.  This information is also logged in "C:\Users\some_user\AppData\Roaming\Microsoft\VisualStudio\15.0_305216d4\ActivityLog.xml".

    Exception details:
    System.ArgumentException: The package does not have a ProvideToolWindowAttribute for tool window c2582843-58c9-4fe7-b4bd-864c17ad7ce2
    Parameter name: toolWindowType
       at Microsoft.VisualStudio.Shell.Package.ThrowNoMatchingToolWindowAttribute(Object toolWindowType, String paramName)
       at Microsoft.VisualStudio.Shell.Package.GetToolWindowAttribute(Guid toolWindowType)
       at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Guid& toolWindowType, Int32 id)
       at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
       at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ConstructContent()
Run Code Online (Sandbox Code Playgroud)

所以我无法将结果输出到控制台.有人知道怎么解决吗?

更新:

这是日志文件(C:\ Users\some_user\AppData\Roaming\Microsoft\VisualStudio\15.0_305216d4\ActivityLog.xml)

https://www.dropbox.com/s/frpncfjzl1gwqpy/ActivityLog.xml?dl=0

另一个更新

我在github https://github.com/Microsoft/RTVS/issues/4302上交叉发布,但到目前为止还没有回应.

小智 0

所需的先决条件是 R 解释器:CRAN-R 或 Microsoft R Open。安装 R Open 解释器,R 交互将起作用。

https://mran.microsoft.com/download