无法加载工作区的图像

发布于 2025-02-07 04:20:42 字数 253 浏览 1 评论 0原文

我有问题,我无法将工作区的图像加载到我的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.

here you can see

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

难理解 2025-02-14 04:20:42

我没有明确的答案,但是您可以尝试以下一些事情:

  • 1,确保您在您认为所在的文件夹中:在您的屏幕截图中,Windows Explorer在中打开了c:/users/mates/oneedrive/desktop/bc rstudio getwd()命令返回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 RStudio getwd() command returns C:/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 the list.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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文