I have tried various [options] iterations of "geany -g [options]" as well as trying the import tags command from inside geany on outputs from R's "rtags()" function, and I just cannot seem to get tags for R.
This is likely because I don't understand how tags are parsed nor do I understand how geany parses tags compared to other IDEs.
Has anyone gotten this to work? If so, could you spell it out for a tagging newbie?
Thanks in advance, Jon
On 9 November 2010 06:59, Jonathan Daily biomathjdaily@gmail.com wrote:
I have tried various [options] iterations of "geany -g [options]" as well as trying the import tags command from inside geany on outputs from R's "rtags()" function, and I just cannot seem to get tags for R.
Step 1, if you open an R file do you get symbols in the sidebar?
This tests that Geany's R tag parser is in fact working. But I'm not sure how much information it gathers, it looks pretty simple.
Step 2. to get tags for files that you don't want to have open all the time (eg libraries) you use geany -g tagfile rfile
The tagfile has to be named correctly as per the documentation and located in one of the places described in the documentation then Geany has to be restarted and it should load the tags.
If you want to use a different source of tags such as rtags you will have to ensure that the format conforms to that described in the Geany documentation or convert it yourself.
Cheers Lex
This is likely because I don't understand how tags are parsed nor do I understand how geany parses tags compared to other IDEs. Has anyone gotten this to work? If so, could you spell it out for a tagging newbie? Thanks in advance, Jon _______________________________________________ Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Hello
On Tue, Nov 9, 2010 at 1:57 AM, Lex Trotman elextr@gmail.com wrote:
On 9 November 2010 06:59, Jonathan Daily biomathjdaily@gmail.com wrote:
I have tried various [options] iterations of "geany -g [options]" as well as trying the import tags command from inside geany on outputs from R's "rtags()" function, and I just cannot seem to get tags for R.
Step 1, if you open an R file do you get symbols in the sidebar?
Yes it does. Here on 0.20 (svn >= r5271).
This tests that Geany's R tag parser is in fact working. But I'm not sure how much information it gathers, it looks pretty simple.
Step 2. to get tags for files that you don't want to have open all the time (eg libraries) you use geany -g tagfile rfile
The tagfile has to be named correctly as per the documentation and located in one of the places described in the documentation then Geany has to be restarted and it should load the tags.
If you want to use a different source of tags such as rtags you will have to ensure that the format conforms to that described in the Geany documentation or convert it yourself.
The rtags() function 'parses R code files (using R's parser) and produces tags in Emacs' etags format'. Are you aware of examples or scripts to convert 'etags' tags to 'geany' tags?
Regards Liviu
Cheers Lex
This is likely because I don't understand how tags are parsed nor do I understand how geany parses tags compared to other IDEs. Has anyone gotten this to work? If so, could you spell it out for a tagging newbie? Thanks in advance, Jon _______________________________________________ Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
On 9 November 2010 16:59, Liviu Andronic landronimirc@gmail.com wrote:
Hello
On Tue, Nov 9, 2010 at 1:57 AM, Lex Trotman elextr@gmail.com wrote:
On 9 November 2010 06:59, Jonathan Daily biomathjdaily@gmail.com wrote:
I have tried various [options] iterations of "geany -g [options]" as well as trying the import tags command from inside geany on outputs from R's "rtags()" function, and I just cannot seem to get tags for R.
Step 1, if you open an R file do you get symbols in the sidebar?
Yes it does. Here on 0.20 (svn >= r5271).
Step one tick :-)
This tests that Geany's R tag parser is in fact working. But I'm not sure how much information it gathers, it looks pretty simple.
Step 2. to get tags for files that you don't want to have open all the time (eg libraries) you use geany -g tagfile rfile
Did this step work?
The tagfile has to be named correctly as per the documentation and located in one of the places described in the documentation then Geany has to be restarted and it should load the tags.
If you want to use a different source of tags such as rtags you will have to ensure that the format conforms to that described in the Geany documentation or convert it yourself.
The rtags() function 'parses R code files (using R's parser) and produces tags in Emacs' etags format'. Are you aware of examples or scripts to convert 'etags' tags to 'geany' tags?
No, thats why I said you need to convert it yourself, sorry. My googles of emacs tags format in the past have been somewhat unproductive, but maybe you can read the source. Geany also doesn't document tagmanager format (the more complex of its two formats) either.
Cheers Lex
Regards Liviu
Cheers Lex
This is likely because I don't understand how tags are parsed nor do I understand how geany parses tags compared to other IDEs. Has anyone gotten this to work? If so, could you spell it out for a tagging newbie? Thanks in advance, Jon _______________________________________________ Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
-- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail _______________________________________________ Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Sorry to pester again, but what I have been having issues with is in your step [2] AKA:
geany -g tagfile rfile
Where does the tagfile come from?
Thanks again, Jon
On Tue, Nov 9, 2010 at 1:45 AM, Lex Trotman elextr@gmail.com wrote:
On 9 November 2010 16:59, Liviu Andronic landronimirc@gmail.com wrote:
Hello
On Tue, Nov 9, 2010 at 1:57 AM, Lex Trotman elextr@gmail.com wrote:
On 9 November 2010 06:59, Jonathan Daily biomathjdaily@gmail.com
wrote:
I have tried various [options] iterations of "geany -g [options]" as
well as
trying the import tags command from inside geany on outputs from R's "rtags()" function, and I just cannot seem to get tags for R.
Step 1, if you open an R file do you get symbols in the sidebar?
Yes it does. Here on 0.20 (svn >= r5271).
Step one tick :-)
This tests that Geany's R tag parser is in fact working. But I'm not sure how much information it gathers, it looks pretty simple.
Step 2. to get tags for files that you don't want to have open all the time (eg libraries) you use geany -g tagfile rfile
Did this step work?
The tagfile has to be named correctly as per the documentation and located in one of the places described in the documentation then Geany has to be restarted and it should load the tags.
If you want to use a different source of tags such as rtags you will have to ensure that the format conforms to that described in the Geany documentation or convert it yourself.
The rtags() function 'parses R code files (using R's parser) and produces tags in Emacs' etags format'. Are you aware of examples or scripts to convert 'etags' tags to 'geany' tags?
No, thats why I said you need to convert it yourself, sorry. My googles of emacs tags format in the past have been somewhat unproductive, but maybe you can read the source. Geany also doesn't document tagmanager format (the more complex of its two formats) either.
Cheers Lex
Regards Liviu
Cheers Lex
This is likely because I don't understand how tags are parsed nor do I understand how geany parses tags compared to other IDEs. Has anyone gotten this to work? If so, could you spell it out for a
tagging
newbie? Thanks in advance, Jon _______________________________________________ Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
-- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail _______________________________________________ Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
On 9 November 2010 23:59, Jonathan Daily biomathjdaily@gmail.com wrote:
Sorry to pester again, but what I have been having issues with is in your step [2] AKA: geany -g tagfile rfile Where does the tagfile come from? Thanks again, Jon
Thats the output file that it is creating. you can list several rfiles and all the tags will go in the same tagfile.
Please read the manual regarding tagfile naming convention and where to put it if you want it automatically loaded, otherwise you can manually load it.
Cheers Lex
On Tue, Nov 9, 2010 at 1:45 AM, Lex Trotman elextr@gmail.com wrote:
On 9 November 2010 16:59, Liviu Andronic landronimirc@gmail.com wrote:
Hello
On Tue, Nov 9, 2010 at 1:57 AM, Lex Trotman elextr@gmail.com wrote:
On 9 November 2010 06:59, Jonathan Daily biomathjdaily@gmail.com wrote:
I have tried various [options] iterations of "geany -g [options]" as well as trying the import tags command from inside geany on outputs from R's "rtags()" function, and I just cannot seem to get tags for R.
Step 1, if you open an R file do you get symbols in the sidebar?
Yes it does. Here on 0.20 (svn >= r5271).
Step one tick :-)
This tests that Geany's R tag parser is in fact working. But I'm not sure how much information it gathers, it looks pretty simple.
Step 2. to get tags for files that you don't want to have open all the time (eg libraries) you use geany -g tagfile rfile
Did this step work?
The tagfile has to be named correctly as per the documentation and located in one of the places described in the documentation then Geany has to be restarted and it should load the tags.
If you want to use a different source of tags such as rtags you will have to ensure that the format conforms to that described in the Geany documentation or convert it yourself.
The rtags() function 'parses R code files (using R's parser) and produces tags in Emacs' etags format'. Are you aware of examples or scripts to convert 'etags' tags to 'geany' tags?
No, thats why I said you need to convert it yourself, sorry. My googles of emacs tags format in the past have been somewhat unproductive, but maybe you can read the source. Geany also doesn't document tagmanager format (the more complex of its two formats) either.
Cheers Lex
Regards Liviu
Cheers Lex
This is likely because I don't understand how tags are parsed nor do I understand how geany parses tags compared to other IDEs. Has anyone gotten this to work? If so, could you spell it out for a tagging newbie? Thanks in advance, Jon _______________________________________________ Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
-- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail _______________________________________________ Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
I re-read the manual and tried the call again on some hefty source files: Nothing again.
This time, however, I think I pinpointed my problem: my Geany version does not have the R parser. Time to update! Please disregard the previous messages.
On Tue, Nov 9, 2010 at 6:23 PM, Lex Trotman elextr@gmail.com wrote:
On 9 November 2010 23:59, Jonathan Daily biomathjdaily@gmail.com wrote:
Sorry to pester again, but what I have been having issues with is in your step [2] AKA: geany -g tagfile rfile Where does the tagfile come from? Thanks again, Jon
Thats the output file that it is creating. you can list several rfiles and all the tags will go in the same tagfile.
Please read the manual regarding tagfile naming convention and where to put it if you want it automatically loaded, otherwise you can manually load it.
Cheers Lex
On Tue, Nov 9, 2010 at 1:45 AM, Lex Trotman elextr@gmail.com wrote:
On 9 November 2010 16:59, Liviu Andronic landronimirc@gmail.com
wrote:
Hello
On Tue, Nov 9, 2010 at 1:57 AM, Lex Trotman elextr@gmail.com wrote:
On 9 November 2010 06:59, Jonathan Daily biomathjdaily@gmail.com wrote:
I have tried various [options] iterations of "geany -g [options]" as well as trying the import tags command from inside geany on outputs from R's "rtags()" function, and I just cannot seem to get tags for R.
Step 1, if you open an R file do you get symbols in the sidebar?
Yes it does. Here on 0.20 (svn >= r5271).
Step one tick :-)
This tests that Geany's R tag parser is in fact working. But I'm not sure how much information it gathers, it looks pretty simple.
Step 2. to get tags for files that you don't want to have open all the time (eg libraries) you use geany -g tagfile rfile
Did this step work?
The tagfile has to be named correctly as per the documentation and located in one of the places described in the documentation then
Geany
has to be restarted and it should load the tags.
If you want to use a different source of tags such as rtags you will have to ensure that the format conforms to that described in the
Geany
documentation or convert it yourself.
The rtags() function 'parses R code files (using R's parser) and produces tags in Emacs' etags format'. Are you aware of examples or scripts to convert 'etags' tags to 'geany' tags?
No, thats why I said you need to convert it yourself, sorry. My googles of emacs tags format in the past have been somewhat unproductive, but maybe you can read the source. Geany also doesn't document tagmanager format (the more complex of its two formats) either.
Cheers Lex
Regards Liviu
Cheers Lex
This is likely because I don't understand how tags are parsed nor do
I
understand how geany parses tags compared to other IDEs. Has anyone gotten this to work? If so, could you spell it out for a tagging newbie? Thanks in advance, Jon _______________________________________________ Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
-- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail _______________________________________________ Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
On Tue, Nov 9, 2010 at 7:45 AM, Lex Trotman elextr@gmail.com wrote:
Step 1, if you open an R file do you get symbols in the sidebar?
Yes it does. Here on 0.20 (svn >= r5271).
Step one tick :-)
This tests that Geany's R tag parser is in fact working. But I'm not sure how much information it gathers, it looks pretty simple.
Step 2. to get tags for files that you don't want to have open all the time (eg libraries) you use geany -g tagfile rfile
Did this step work?
No. I tested the functionality using a single R file (attached), and it errors out. sh>geany -g "/usr/local/build/R.tags" "/usr/local/build/latticist/R/latticist.R" (5603) Failed to create tags file, perhaps because no tags were found.
sh>geany -g "/usr/local/build/R.tags" ... atticist/R/latticist.R" (5603) returned '1'
Opening the file in Geany will correctly identify two tags (Functions, in Symbols).
However, even if geany -g worked on .R files, the approach would be difficult to apply in practice. It requires the user to specify .R files, and given the structure of R packages this could be a quickly become tedious. It would have been much easier if Geany accepted a path in which it could recursively scan (and parse) R files. The rtags() function can do that, so it might make sense to find a conversion route for etags files.
No, thats why I said you need to convert it yourself, sorry. My googles of emacs tags format in the past have been somewhat unproductive, but maybe you can read the source. Geany also doesn't document tagmanager format (the more complex of its two formats) either.
Unfortunately I haven't yet managed to get any output from rtags() [2], pending a cry for help on r-help, so I couldn't post an example (@Jon, did you have any luck with that?). But here's [1] what I found as close as possible to a spec. Could you please take a look and let us know whether there's some resemblance with the Geany format, for a potential conversion route?
Thank you Liviu
[1] http://en.wikipedia.org/wiki/Ctags#Etags_2 [2] http://developer.r-project.org/rtags.html
On 11 November 2010 07:55, Liviu Andronic landronimirc@gmail.com wrote:
On Tue, Nov 9, 2010 at 7:45 AM, Lex Trotman elextr@gmail.com wrote:
Step 1, if you open an R file do you get symbols in the sidebar?
Yes it does. Here on 0.20 (svn >= r5271).
Step one tick :-)
This tests that Geany's R tag parser is in fact working. But I'm not sure how much information it gathers, it looks pretty simple.
Step 2. to get tags for files that you don't want to have open all the time (eg libraries) you use geany -g tagfile rfile
Did this step work?
No. I tested the functionality using a single R file (attached), and it errors out. sh>geany -g "/usr/local/build/R.tags" "/usr/local/build/latticist/R/latticist.R" (5603) Failed to create tags file, perhaps because no tags were found.
sh>geany -g "/usr/local/build/R.tags" ... atticist/R/latticist.R" (5603) returned '1'
Opening the file in Geany will correctly identify two tags (Functions, in Symbols).
Using the file you attached it works for me on 0.19.1, created the tags file and when loaded the symbols show up in autocompletion.
two comments about what you are doing above
1. do you have the authority to write to /usr/local?? why not try in your home dir first and load manually to see if it works. 2. the tags file name is in the wrong format, should be filename.R.tags not just R.tags, that shouldn't prevent it writing but it will prevent it loading
However, even if geany -g worked on .R files, the approach would be difficult to apply in practice. It requires the user to specify .R files, and given the structure of R packages this could be a quickly become tedious. It would have been much easier if Geany accepted a path in which it could recursively scan (and parse) R files. The rtags() function can do that, so it might make sense to find a conversion route for etags files.
Whats the structure of R packages?
Presuming from the above that it is lot of files in nested directories you could use find to run geany -g on them all. Whilst that gives you lots of tag files to open, I don't expect it to be too much slower than one huge file.
Otherwise patches are welcome.
No, thats why I said you need to convert it yourself, sorry. My googles of emacs tags format in the past have been somewhat unproductive, but maybe you can read the source. Geany also doesn't document tagmanager format (the more complex of its two formats) either.
I have tried to use the information in the wikipedia entry in the past but it appears to be incomplete, the rtags entry doesn't tell me anything about the format.
Unfortunately I haven't yet managed to get any output from rtags() [2], pending a cry for help on r-help, so I couldn't post an example (@Jon, did you have any luck with that?). But here's [1] what I found as close as possible to a spec. Could you please take a look and let us know whether there's some resemblance with the Geany format, for a potential conversion route?
As best I can tell the formats are similarish, so I don't expect a format conversion to be too hard for someone to write, if you can find out what they actually are.
Cheers Lex
Thank you Liviu
[1] http://en.wikipedia.org/wiki/Ctags#Etags_2 [2] http://developer.r-project.org/rtags.html
Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
On Thu, 11 Nov 2010 09:11:30 +1100 Lex Trotman elextr@gmail.com wrote:
However, even if geany -g worked on .R files, the approach would be difficult to apply in practice. It requires the user to specify .R files, and given the structure of R packages this could be a quickly become tedious. It would have been much easier if Geany accepted a path in which it could recursively scan (and parse) R files. The rtags() function can do that, so it might make sense to find a conversion route for etags files.
Whats the structure of R packages?
Presuming from the above that it is lot of files in nested directories you could use find to run geany -g on them all. Whilst that gives you lots of tag files to open, I don't expect it to be too much slower than one huge file.
Otherwise patches are welcome.
I'm not sure that reimplementing Unix find is something Geany should be doing really. But documenting how to do that in the manual would be a good idea.
Supporting CTags format is something on the TODO list.
You can 'see' the format in tagmanager/tm_tag.c in the tm_tag_write() function. That is just called repeatedly for each tag entry in the file.
Nick
On 12 November 2010 02:32, Nick Treleaven nick.treleaven@btinternet.com wrote:
On Thu, 11 Nov 2010 09:11:30 +1100 Lex Trotman elextr@gmail.com wrote:
However, even if geany -g worked on .R files, the approach would be difficult to apply in practice. It requires the user to specify .R files, and given the structure of R packages this could be a quickly become tedious. It would have been much easier if Geany accepted a path in which it could recursively scan (and parse) R files. The rtags() function can do that, so it might make sense to find a conversion route for etags files.
Whats the structure of R packages?
Presuming from the above that it is lot of files in nested directories you could use find to run geany -g on them all. Whilst that gives you lots of tag files to open, I don't expect it to be too much slower than one huge file.
Otherwise patches are welcome.
I'm not sure that reimplementing Unix find is something Geany should be doing really. But documenting how to do that in the manual would be a good idea.
Supporting CTags format is something on the TODO list.
You can 'see' the format in tagmanager/tm_tag.c in the tm_tag_write() function. That is just called repeatedly for each tag entry in the file.
Bah missed it :-)
The R source reveals
write.etags <- function(src, tokens, startlines, lines, nchars, ..., shorten.lines = c("token", "simple", "none")) { ## extra 1 for newline shorten.lines <- match.arg(shorten.lines) offsets <- (cumsum(nchars + 1L) - (nchars + 1L))[startlines] lines <- switch(shorten.lines, none = lines, simple = sapply(strsplit(lines, "function", fixed = TRUE), "[", 1), token = mapply(shorten.to.string, lines, tokens)) tag.lines <- paste(sprintf("%s\x7f%s\x01%d,%d", lines, tokens, startlines, as.integer(offsets)), collapse = "\n") ## simpler format: tag.lines <- paste(sprintf("%s\x7f%d,%d", lines, startlines, as.integer(offsets)), collapse = "\n") tagsize <- nchar(tag.lines, type = "bytes") + 1L cat("\x0c\n", src, ",", tagsize, "\n", tag.lines, "\n", sep = "", ...) }
So someone who reads C and R can write a converter :-)
Cheers Lex
Nick _______________________________________________ Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
If you need rtags() in R to give you an output, I use:
rtags(path = "/path/to/R/library/base", recursive = T, ofile = "/home/whatever.tags")
On Thu, Nov 11, 2010 at 4:45 PM, Lex Trotman elextr@gmail.com wrote:
On 12 November 2010 02:32, Nick Treleaven nick.treleaven@btinternet.com wrote:
On Thu, 11 Nov 2010 09:11:30 +1100 Lex Trotman elextr@gmail.com wrote:
However, even if geany -g worked on .R files, the approach would be difficult to apply in practice. It requires the user to specify .R files, and given the structure of R packages this could be a quickly become tedious. It would have been much easier if Geany accepted a path in which it could recursively scan (and parse) R files. The rtags() function can do that, so it might make sense to find a conversion route for etags files.
Whats the structure of R packages?
Presuming from the above that it is lot of files in nested directories you could use find to run geany -g on them all. Whilst that gives you lots of tag files to open, I don't expect it to be too much slower than one huge file.
Otherwise patches are welcome.
I'm not sure that reimplementing Unix find is something Geany should be doing really. But documenting how to do that in the manual would be a good idea.
Supporting CTags format is something on the TODO list.
You can 'see' the format in tagmanager/tm_tag.c in the tm_tag_write() function. That is just called repeatedly for each tag entry in the file.
Bah missed it :-)
The R source reveals
write.etags <- function(src, tokens, startlines, lines, nchars, ..., shorten.lines = c("token", "simple", "none")) { ## extra 1 for newline shorten.lines <- match.arg(shorten.lines) offsets <- (cumsum(nchars + 1L) - (nchars + 1L))[startlines] lines <- switch(shorten.lines, none = lines, simple = sapply(strsplit(lines, "function", fixed = TRUE), "[", 1), token = mapply(shorten.to.string, lines, tokens)) tag.lines <- paste(sprintf("%s\x7f%s\x01%d,%d", lines, tokens, startlines, as.integer(offsets)), collapse = "\n") ## simpler format: tag.lines <- paste(sprintf("%s\x7f%d,%d", lines, startlines, as.integer(offsets)), collapse = "\n") tagsize <- nchar(tag.lines, type = "bytes") + 1L cat("\x0c\n", src, ",", tagsize, "\n", tag.lines, "\n", sep = "", ...) }
So someone who reads C and R can write a converter :-)
Cheers Lex
Nick _______________________________________________ Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel