[rkward-tracker] [ rkward-Bugs-2905934 ] FIXED IN SVN: Editor removes comments
SourceForge.net
noreply at sourceforge.net
Fri Apr 30 14:23:31 UTC 2010
Bugs item #2905934, was opened at 2009-11-30 12:57
Message generated for change (Settings changed) made by tfry
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=459007&aid=2905934&group_id=50231
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: user interface
Group: None
>Status: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: markus (markpadge)
Assigned to: Nobody/Anonymous (nobody)
Summary: FIXED IN SVN: Editor removes comments
Initial Comment:
When editing functions or scripts saved within a workspace, the editor strips all white spaces and comments (#). I'm pretty sure it's not a kate configuration problem, as it only occurs within RKWard. Losing all comments is a rather enormous problem, and any help in retrieving them would be appreciated!
Running RKWard 0.5.1 on KDE 4.3.2 with R 2.9.2 on an x86_64.
----------------------------------------------------------------------
>Comment By: Thomas Friedrichsmeier (tfry)
Date: 2010-04-30 16:23
Message:
A fixed release (0.5.3) was created, today. The workaround should be no
longer needed after updating. Thanks again for reporting.
----------------------------------------------------------------------
Comment By: markus (markpadge)
Date: 2009-12-01 10:44
Message:
Yep, that was exactly what i meant, and that workaround fixed it perfectly.
Hugely appreciative! Thanks!
----------------------------------------------------------------------
Comment By: Thomas Friedrichsmeier (tfry)
Date: 2009-11-30 19:30
Message:
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)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=459007&aid=2905934&group_id=50231
More information about the rkward-tracker
mailing list