英文:
r version 4.3.0 ggplot not working in shiny
问题
我有一个Shiny应用程序,多年来一直运行得很完美。最近,我升级了Linux(Ubuntu)以及所有相关的应用程序,使用标准的apt-get update/upgrade语法,将Ubuntu升级到了18.04版本,并将R从4.0.0升级到了4.3.0。
现在(在更新了一些相关库之后),我的应用程序中的绘图不显示了。相同的代码在我的Macbook上运行并显示得很完美(仍然运行R 4.0.2)。
我已经检查了日志,没有生成日志文件,这表明在R的看来,代码正在正常执行(并退出)。
我已经按照这篇帖子中的说明进行操作,以获得额外的错误日志记录,但这也显示没有发现错误。
其他人是否在R 4.3.0和ggplot中遇到过这个问题?如果是这样,是否合理地回滚到较早版本的R?我要指出我不知道如何回滚,所以在这方面的任何帮助将不胜感激。
彼得
英文:
I have a Shiny app which has worked perfectly for a number of years. I recently upgraded linux (ubuntu) and all associated apps using the standard apt-get update/upgrade syntax which left me running ubuntu 18.04 and upgraded R from 4.0.0 to 4.3.0.
Now (having updated a number of associated libraries), the plots on my app aren't displaying. The
same code runs and displays perfectly on my macbook (still running R 4.0.2).
I have checked the logs and no log file is generated suggesting that, as far as R is concerned, the
code is executing (and exiting) normally.
I have followed the instructions in this post
in order to get additional error logging - but this also shows no errors are being identified.
Have others seen this with R 4.3.0 and ggplot ? if so is it reasonable to simply roll
back to an earlier version of R ?? - I would point out that I don't know how to do a roll
back so any help in that regard would be very welcome
Peter
答案1
得分: 0
/usr/local/lib/R/site-library/目录的权限已更改,阻止写入它(可能是在Ubuntu升级过程中或更可能是在R升级过程中 - 从4.0.0升级到4.3.0)。重置目录的权限解决了问题。
英文:
Well - after weeks of trying I noticed that the privileges of the /usr/local/lib/R/site-library/ directory had been changed to prevent writing to it (possibly in the ubuntu upgrade process or (more likely) in the R upgrade process - 4.0.0 to 4.3.0). Resetting the privileges for the directory solved the problem.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论