无法加载工作区的图像
我有问题,我无法将工作区的图像加载到我的rstudio。当我使用命令加载数据时,什么也不会发生。如果我使用文件进行检查,则输出是错误的,但是我可以用自己的眼睛看到文件。我有正确的工作目录,并加载文件正确的名称。我检查了很多次。我不知道问题是什么。我尝试加载它手动,这发生了。
I have problem that I cant load image of my workspace to my RStudio. When I use command load data nothing happened. If i check it with file exists output is false but I can see the file with my own eyes. I have the right working directory and I load file with right name. I checked it many times. I dont know what is the problem.I tried load it manualy and this happened.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我没有明确的答案,但是您可以尝试以下一些事情:
1,确保您在您认为所在的文件夹中:在您的屏幕截图中,Windows Explorer在
中打开了c:/users/mates/oneedrive/desktop/bc
rstudiogetwd()
命令返回c:/users/mates/oneedrive/pocitac/pocitac/desktop/bc (由于非ASCII字符,我无法在此处键入正确的路径,但是如果不是屏幕截图:P),我可以复制它。您可以使用
list.files()
命令(请参见DOC )检查文件 die 是否存在于您使用的文件夹中。2d,在不通过OneDrive同步的文件夹中尝试一下,看看是否是问题
3D,请在其路径中只有ASCII字符的文件夹中尝试:它可以是由于文件路径中的非ascii字符而引起的错误/a>
I don't have a definitive answer but here are some things you can try:
1st, Ensure that for SURE you are in the folder where you think you are: in your screenshot, the Windows explorer is opened to
C:/Users/mates/OneDrive/Desktop/BC
whereas the RStudiogetwd()
command returnsC:/Users/mates/OneDrive/Pocitac/Desktop/BC
(I am unable to type the correct path here due to the non-ascii characters, but I could have copy-pasted it if it wasn't a screenshot :p). You can use thelist.files()
command (see doc) to check whether the file does exist in the folder you are using .2d, try that in a folder that's not synchronized by OneDrive and see whether that's the issue
3d, try that in a folder that has only ascii characters in it's path: it could be a bug due to the non-ascii characters in the file path