Summary: | FIXED IN SVN: Editor removes comments | ||
---|---|---|---|
Product: | [Applications] rkward | Reporter: | RKWard Team <rkward-devel> |
Component: | general | Assignee: | RKWard Team <rkward-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | All | ||
Latest Commit: | Version Fixed In: |
Description
RKWard Team
2009-11-30 10:57:36 UTC
Hello, I assume you mean this scenario: my.fun <- function \(\) \{ \# comment print \("hi"\) \} fix \(my.fun\) We were wrong on that, indeed. Thanks for pointing this out. This is now fixed in the SVN version of rkward \(http://p.sf.net/rkward/svn\). Until a fixed version is released, you may want to use this workaround: Source the following lines at the start of each session: "rk.edit.files" <- function \(file = file, title = file, name = NULL\) \{ if \(\!is.character \(file\)\) \{ nfile = tempfile\(\) env = environment \(file\) dput \(file, file=nfile, control=c \("useSource", "keepNA", "keepInteger", "showAttributes"\)\) .Call\("rk.edit.files", nfile, title, name\) x <- dget \(nfile\) environment \(x\) <- env return \(x\) \} invisible \(.Call \("rk.edit.files", file, title, name\)\) \} options \(editor=rk.edit.files\) - **summary**: Editor removes comments --> FIXED IN SVN: Editor removes comments - **status**: open --> open-fixed -- Originally posted by (AT sourceforge.net): markpadge -- Yep, that was exactly what i meant, and that workaround fixed it perfectly. Hugely appreciative\! Thanks\! A fixed release \(0.5.3\) was created, today. The workaround should be no longer needed after updating. Thanks again for reporting. - **status**: open-fixed --> closed-fixed |