r - 新更新的 R 3.2.2 中编辑不保存功能

标签 r rstudio edit

更正式的运算符保存对函数的更改:

function_I_want_to_edit <- edit()

这将打开编辑窗口,我可以在重新打开它时进行更改。

但是,如果我尝试一下:

edit(function_I_want_to_edit)

它打开编辑窗口,但当我重新打开它时,它似乎没有保存我的更改。这是在 RStudio 中,新更新到版本 3.2.2。

我不知道它是否总是这样工作,因为我相信我能够改变一件事,然后它就停止工作了。

有人注意到 editfix 存在类似问题吗?

最佳答案

是的,这似乎是预期的行为。如果您查看编辑的帮助:

It is important to realize that edit does not change the object called name. Instead, a copy of name is made and it is that copy which is changed. Should you want the changes to apply to the object name you must assign the result of edit to name. (Try fix if you want to make permanent changes to an object.)

fix 确实保存了我对函数所做的更改。

关于r - 新更新的 R 3.2.2 中编辑不保存功能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32641613/

相关文章:

r - 如何处理不完美但有用的功能?

r - R 中的 HDBSCAN 可视化应用文本标签而不是数字

r - 使用 ggplot2 对来自 3 个不同数据集的 3 个图进行分面

java - 调用另一个类中的方法来设置标签文本(不要使用netbeans的默认内容)

php - 编辑 MySQL 数据的 PHP 页面

c++ - 无法使用 rtools40 和 R 4.0 构建 RDCOMClient

r - 从 R 中的 qdap 包结果中获取 all.polity 值

tex - Sweave 到 LaTeX "undefined control sequence"错误

r - 无法通过rstudio在linux服务器上为git设置PAT身份验证

Python 音频编辑