similar to: : regular expressions: escaping a dot

Displaying 20 results from an estimated 4000 matches similar to: ": regular expressions: escaping a dot"

2009 Nov 13
3
Escaping regular expressions
Hi all, Is there a method for escaping strings to be used regular expressions? i.e. if I have a user supplied string that I'd like to use as a fixed component is there a method that will turn (e.g.) ".$^" into "\\.\\$\\^" ? Thanks, Hadley -- http://had.co.nz/
2009 Jun 08
3
using regular expressions to retrieve a digit-digit-dot structure from a string
Hi, i need to recognize itemization structures in strings which follow the format: "digit-digit-dot" like e.g. 1. 2. 19. 211. Given the string " This happened in the 21. century." (the dot behind 21 is used in German instead of 21st) I want know where the dots are but I do not want the 21.-dot to be returned as well. I am not good at regular expressions. How
2012 Aug 21
7
Regular Expressions in grep
Dear r-help members, I have a number in the form of a string, say: a<-"-01020.909200" I'd like to extract "1020." as well as ".9092" Front<-grep(pattern="[1-9]+[0-9]*\\.", value=TRUE, x=a, fixed=FALSE) End<-grep(pattern="\\.[0-9]*[1-9]+", value=TRUE, x=a, fixed=FALSE) However, both strings give "-01020.909200", exactly
2010 Sep 01
1
OdfWeave and Locale
Dear all, I have a question regarding the odfweave. I created an odt file (test_input.odt) using OO.o for WIndows XP. The code is generic. ---- Code for odt ----------- \Sexpr{dim(iris)[1]} <<listofSpecies, echo=FALSE, results=xml>>= odfItemize(levels(iris$Species)) @ Table 1: <<Table, echo=FALSE, results=xml>>= data.frame(N =tapply(iris$Petal.Length, iris$Species,
2013 Feb 18
3
odfWeave: Trouble Getting the Package to Work
Hello All, Have recently started learning Sweave and Knitr. Am now trying to learn odfWeave as well. Things went pretty smoothly with Sweave and Knitr but I'm having some trouble with odfWeave. My understanding was that odfWeave should work in pretty much the same way as Sweave. With odfWeave, you set up an input .odt file in a folder, run that file through the odfWeave function, and then
2009 Jul 06
1
odfWeave: odt-file damaged
Dear all, I am doing my first steps with odfWeave. After running the r code (see below), I am trying to open the ODF-document with open office, but I am getting the error message: "The file is damaged, but it can be repaired". If I confirm the question and repair the file with open office, I can open it with the desired output, which seems to be fine. My system: R Version 2.9.1
2009 Jan 11
1
Problem using odfWeave
Hi everybody, I don't get odfWeave to run properly. My odt file is as a simple as: ------------------------ Some text. <<echo=FALSE>>= print(1:10) @ ----------------------- The output I get ist the following: ----------------------------------- > odfWeave("roffice.odt", "rofficeOUT.odt") Copying roffice.odt Setting wd to
2011 Jan 23
1
odfWeave Error unzipping file in Win 7
Hey guys, I?m just getting started with R (version 2.12.0) and odfWeave and kinda stumble from one problem to the next, the current one is the following: trying to use odfWeave: > odfctrl <- odfWeaveControl( + zipCmd = c("C:/Program Files/unz552dN/VBunzip.exe $$file$$ .", + "C:/Program Files/unz552dN/VBunzip.exe $$file$$")) > >
2011 Dec 17
1
odfWeave error
I am new to using odfWeave but I have encountered a problem running both the example in the help file as well as another file.? I am not sure how to correct the error. First example: library(odfWeave) filein <- 'c:\\my documents\\example01_in.odt' fileout <- 'c:\\my documents\\example01.odt' odfWeave(filein, fileout, control = odfWeaveControl(cleanup = T)) error:
2011 Dec 16
1
odfWeave
I am new to using odfWeave but I have encountered a problem running both the example in the help file as well as another file. I am not sure how to correct the error. First example: library(odfWeave) filein <- 'c:\\my documents\\example01_in.odt' fileout <- 'c:\\my documents\\example01.odt' odfWeave(filein, fileout, control = odfWeaveControl(cleanup = T)) error:
2009 Aug 01
1
odfWeave : sudden and unexplained error
Dear list, dear Max, I a currently working on a report. I'm writing it with OpenOffice.org and odfWeave. I'm working increentally : I write a bit, test (interactively) some ideas, cutting-and-pasting code to the Ooo report when satisfied with it. I the process, I tend to recompile the .odt source a *lot*. Suddenly, odfWeave started to give me an incomprehensible error even before
2011 May 14
1
odfWeave 0.7.17 stutters on Debian testing 64-bit amd64 systems.
Dear list, This is a copy of a mail sent to Max Kuhn, original author and maintainer of the odfWeave package, which seems not to have received it. It reports a problem that seems to be very implementation specific (reproductible on three Debian testing amd64 machine, does *not* happen on two i686 Debian testing systems, does *not* happen on an Ubuntu 11.06 amd64 machine) and therefore not
2012 Aug 10
1
Running odfWeave on its own examples.odt
I'm trying to see if I can help some Windows users, but in WinXP and Win7 virtual machines and in a Win 7-64 real environment, after extracting the odfWeave examples.odt from the package and putting it in my working directory ("My Documents") where R can see and unpack it, I get "unable to convert 'examples.odt' to the current locale". I've tried some searches
2007 Aug 09
1
odfWeave processing error, file specific
Hello, I hope there is a simple explanation for this. I have been using odfWeave with great satisfaction in R 2.5.0. Unfortunately, I cannot get beyond the following error message with a particular file. I have copied and pasted into new files and the same error pops up. It looks like the error is occurring before any of the R code is run (?). Any suggestions on how to track this down and fix
2010 Aug 31
1
odfWeave
Dear -r-helpers, I'm trying to get my students to use odfWeave. Windows users are having trouble. I would appreciate advice. Comment 1: Hello I have spent a while today trying to get odfWeave to be successful I installed the unzip and zip program but it has not changed the error message.I have copied the error message below but I am sure it is the one others have experienced. >
2010 Aug 25
1
several odfWeave questions
[Sending both to the maintainer and to R-help, in case anyone else has answers ...] I've looked in odfWeave documentation, vignette, and poked around on the web some, and haven't found answers yet. 1a. am I right in believing that odfWeave does not respect the 'keep.source' option? Am I missing something obvious? 1b. is there a way to set global options analogous to
2010 Feb 26
1
Automate generation of multiple reports using odfWeave
Dear R and odfWeave users, I am looking for a way to automate generation of many reports using odfWeave. All reports would use the same input ODT file, the only difference would be in the name of the dataset which will be analyzed in any particular report. Right now, the name of the dataset is hardcoded in the first code chuck in the input file: <<01 get data, echo=TRUE>> station =
2009 Dec 13
1
odfWeave produces output file that OO can't open
Dear R-helpers, I'm trying to learn how to use odfSweave. Here is my source file (in /Users/mk/myTeach/2010-1-7720/odfWeave): **************************************** Analysis of the iris Data Created on \Sexpr{date()} <<loadLibs, echo = FALSE, results = hide>>= # I usually load the libraries first so that any output produced by loading the library does not end up in the
2009 Mar 11
1
trying to run odfWeave()
Hi there ! I'm working with windows and R GUI and I'm trying to generate an automatic repport using odfWeave. I have taken the basic template available on line at : http://www.biostat.uzh.ch/services/templates.html which is SampleOdf.odt I've imported the package "odfWeave" and the corresponding library. And then I run : > file.in="E:/Tex/SampleOdf.odt"
2010 Sep 17
1
odfWeave UTF-8 error and latin characters
Hello R masters, I have sent this same message to other lists and none so far could give some light. I was trying to use odfWeave to generate a report from R and Im getting an error that I think is related to latin characters. I looked around and did find some stuff related to this problem about Sweave http://labmoluscos.wordpress.com/2010/02/18/sweave-latex-character-encoding/ but did not find a