Plot() error when using REngine.Rserve

后端 未结 2 1411
梦如初夏
梦如初夏 2020-12-20 00:50

I\'m now work on a project which wants to use org.rosuda.REngine.Rserve to use facilities of R by C#. I have a particular problem that when I run the following code in C# cl

相关标签:
2条回答
  • 2020-12-20 01:16

    A folder named (null).1001.1001


    Related answer at Cannot open file '', reason No such file or directory suggests using file.path as a alternative to paste for creating filenames with platform-independent path separators.

    Comments suggest dev.off(). I had better luck with graphics.off(). The difference is that dev.close() closes the current device, graphics.off() closes all open devices.

    But my solution turned out to be https://askubuntu.com/questions/721485/what-is-folder-null-1001-1001 I found a mysterious folder named (null).1001.1001 (Rserve is running as uid 1001, gid 1001 on Linux). I create this folder at the start of my session and I'm good to go. The presence of this folder seems to help in my case, but I don't know (yet!) what that folder is.

    0 讨论(0)
  • 2020-12-20 01:26

    Try this code :-

    c.eval("dev.off()")
    
    0 讨论(0)
提交回复
热议问题