Strings not working in my schemedef

Discussion Forums discussion Strings not working in my schemedef

This topic contains 0 voices and has 5 replies.

Viewing 6 posts - 1 through 6 (of 6 total)
Author Posts
Author Posts
March 22, 2008 at 12:54 pm #369


I’ve writed a schemedef for R, and everything is working very well but not the strings. I can’t understand why it’s not working. Can someone help me? Below is my r.schemedef file.

<?xml version="1.0" encoding="UTF-8"?>



<keyword-class name="rfunctions">

help apropos help.start str summary ls

ls.str dir methods options library require attach detach

load data read.table read.csv read.delim read.fwf save

save.image cat print format write.table sink

c seq rep data.frame list array matrix factor gl

expand.grid rbind cbind as.array as.numeric

as.logical as.complex as.character is.null is.array is.numeric is.complex is.character length

dim dimnames nrow ncol class unclass attr attributes

which.max which.min rev sort cut match which choose na.omit unique table subset transform sample prop.table

sin cos tan asin acos atan atan2 log log10 exp

max min range sum diff prod mean median quantile weighted.mean

rank var sd cor var cov round log scale pmin pmax cumsum

cumprod cummin cummax union intersect setdiff setequal is.element

Re Im Mod abs Arg Conj convolve fft mvfft filter

t diag solve rowsum colsum colSums rowMeans colMeans

apply lapply tapply tapply by ave merge aggregate stack unstack reshape

paste substr strsplit grep gsub tolower toupper match pmatch nchar

as.Date as.POSIXct difftime strftime x11 windows

postscript ps.options pdf png jpeg bitmap xfig pictex

plot hist barplot dotchart pie boxplot sunflowerplot stripplot

coplot interaction.plot matplot fourfoldplot assocplot

mosaicplot pairs plot.ts ts.plot qqnorm qqplot contour

filled.contour image persp stars symbols termplot

points lines text mtext segments arrows abline rect

polygon legend title axis box rug locator

xyplot barchart dotplot densityplot histogram bwplot

qqmath stripplot qq splom parallel levelplot wireframe cloud

optim nlm lm glm nls approx spline lowss

predict df.residual coef residuals deviance fitted logLik AIC

aov anova density binom.test pairwise.t.test power.t.test

prop.test t.test

rnorm rexp rgamma rpois rweibull rcauchy rbeta rt rf rchisq

rbinom rgeom rhyper rlogis rlnorm rnbinom runif rwilcox

function return if else for while repeat break next ifelse

source shell Sweave print mahalanobis

rm ls objects setwd getwd names

prcomp princomp loadings biplot screeplot



<!-- base-language -->

<schemedef name="r" title="R" folding="false" casesensitive="true" braces="{[()]}">


<!-- Single and double quotes string, with as an escape character -->

<stringtype id="0" start=""" end=""" multiline="false" escape="" />

<stringtype id="1" start="'" end="'" multiline="false" escape="" />


<identifiers start="[a-zA-Z]" content="[._a-zA-Z0-9]" />


<!-- continuation="" -->

<line start="#" />


<numbers start="[0-9]" content="[0-9a-f.x]" />

<lexer name="r" />


<style name="Default" key="32" />

<style name="Whitespace" key="0" />

<style name="Line Comment" key="1" class="comment" />

<style name="Identifier" key="3" class="identifier" />

<style name="Number" key="4" class="number" />

<style name="Keyword" key="5" class="keyword" />

<style name="String" key="10" class="string" />

<style name="String 2" key="11" class="string" />



<keyword key="0" name="Keywords" class="rfunctions" />




March 22, 2008 at 3:54 pm #15830


I don’t know how but it started to work perfectly!!!

Thanks anyway for Programmer’s Notepad.

March 22, 2008 at 8:58 pm #15831

Key Master

Glad to hear it!

April 9, 2008 at 2:23 am #15832


danielrmt, thanks so much for making this schemedef!

I couldn’t get it to work for me, however. I copied the code into a file called r.schemedef in the schemes folder, but when I opened up pnotepad, it crashed, telling me that “Programmer’s Notedpad 2 has experience an unexpected problem and is going to close, we apologise for this inconvenience…”

I’m new to pnotepad and I would greatly appreciate any advice for how to get scheme for R up and running. Thanks

April 9, 2008 at 4:05 pm #15833

Key Master

In the above strings section, make sure that your .xml file on disk looks like this:

<!-- Single and double quotes string, with as an escape character -->
<stringtype id="0" start="&quot;" end="&quot;" multiline="false" escape="" />
<stringtype id="1" start="'" end="'" multiline="false" escape="" />

Above there are three quotes like this: """

This is invalid xml, they should be "&quot;"

April 9, 2008 at 10:18 pm #15834



Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.