similar to: Problem with a regular expression.

Displaying 20 results from an estimated 8000 matches similar to: "Problem with a regular expression."

2017 Aug 17
2
Problem with a regular expression.
I tried this on a Linux (Ubuntu) server invoking R from the command line and the result was the same, except that I could kill the R session from another terminal window. From: Rui Barradas <ruipbarradas at sapo.pt> To: Chris Triggs <cm.triggs at auckland.ac.nz>; "r-devel at r-project.org" <r-devel at r-project.org> Cc: Thomas Lumley <t.lumley at
2017 Aug 17
1
Problem with a regular expression.
The issue seems related to R bug report 15012: https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=15012 As mentioned in the comments there, a pull request to the TRE library has recently been made, but I don't know about its status. Daniel ________________________________________ Von: R-devel <r-devel-bounces at r-project.org> im Auftrag von Tomas Kalibera <tomas.kalibera at
2017 Aug 17
0
Problem with a regular expression.
The problem is in TRE library, in regcomp, while compiling the regular expression. This is enough to trigger in R (to do this without re-boot: ulimit -v 500000 ): > strsplit("", "\\\\)") To repeat in TRE, one can build TRE from sources and run > ./src/agrep "\\\\)" README.md Tomas On 08/17/2017 09:45 AM, Moshe Olshansky via R-devel wrote: > I tried
2017 Aug 17
0
Problem with a regular expression.
Hello, This seems to be serious. RGui.exe, fresh session. I've clicked File > New Script and wrote Oldterm <- c("A", "B", "A", "*", "B") strsplit(Oldterm, "\\\\)" ) Ran each instruction at a time with Ctrl+r and with the strsplit call the system froze. Ctrl+Alt+Del didn't work, I had to go for the power switch button.
2017 Sep 29
2
Unexpected behaviour with download.packages on Windows
If no 'type' is specified, download.packages("pkgname") will download source packages (.tar.gz files), even on Windows. However, the help says type character string, indicate which type of packages: see install.packages. and on Windows, install.packages defaults to downloading binary packages. Is this intended behaviour on the part of download.packages? This is on R
2012 Aug 06
2
Windows 7 and .libPaths()
Hello, I'm having some trouble trying to set the .libPaths() on Windows 7, R-2.15.0 and R-2.15.1. The environment variables R_LIBS and R_LIBS_USER are set according to the help page for .libPaths() and the Rprofile.site file has the default setting, as shown below. R-2.14.1 recognizes the lib paths but not R-2.15. Is this a bug or am I doing something wrong? (I've also tried with
2012 Nov 08
3
strsplit with invalid regular expression
Hi all, > diff_operator <- "\\(" > strsplit(cond, diff_operator) [[1]] [1] "andsin" "log_angle_1_4)" > diff_operator <- "\\sin(" > strsplit(cond, diff_operator) Error in strsplit(cond, diff_operator) : invalid regular expression '\sin(', reason 'Missing ')'' When I am going to split with "("
2017 Jun 05
2
months not working with local language (weekdays does)
Hi, I want to reporte some strange behaviour with the "months" function, from base R. When using "months" to extract months from a date column, I'm getting the months in english, when I was expecting months in spanish. When using "weekdays" to extract days of week from a date column, I'm getting the the days in spanish (as expected). My understanding is
2000 Oct 11
2
invalid regular expression after many grep's (PR#691)
Full_Name: J Utans Version: 1.1.1 OS: NT4 (SP6) Submission from: (NULL) (155.140.123.250) After grep is called many times (> 250k), with constant strings as patterns, it complains with "invalid regular expression" on calls that worked before (with same pattern and x). At the same time copying to the clipboard does no longer work with "out of memory" error (i.e. when trying
2017 Jun 05
2
months not working with local language (weekdays does)
For what it's worth, I tried setting my Region | Formats setting to Spanish (Peru) in Windows 10 Control Panel, and got Spanish weekday and month results. I believe on Windows we use the Microsoft C strftime function to produce these strings, with the %A (for weekday) or %B (for month) formats. So this question probably needs to be addressed to Microsoft. Duncan Murdoch On 05/06/2017
2009 Jun 03
2
Regular expression \ String Extraction help
Dear all, Is there a good way of doing the following conversion: [YYYY]-[MM]-[DD] [Time] [Day] [Name][Integer].[Extention] to become C:\test\[Name]\[YYYY]-[MM]-[DD] [Time] [Day]\[YYYY]-[MM]-[DD] [Time] [Day] [Name][Integer].[Extention] i.e. these 2009-04-10 1400 Fri Foo1.txt 2009-04-10 1400 Fri Universities2.txt 2009-04-10 1400 Fri Hitchhikers Guide To The Galaxy42.txt will become
2009 Mar 03
4
regular expression question
can someone show me how to use a regular expression to break the string at the bottom up into its three components : (-0.791,-0.263] (-38,-1.24] (0.96,2.43] I tried to use strplit because of my regexpitis ( it's not curable. i've been to many doctors all over NYC. they tell me there's no cure ) but it doesn't work because there also dots inside the brackets. Thanks.
2007 Nov 27
1
help in ar function
Dears Sirs During my computational work I encountered unexpected behaviour when calling "ar" function. I want to select the order p of the autoregressive approximation by AIC criterion and sometimes an error occurs. Example: # time series
2017 Jun 05
0
months not working with local language (weekdays does)
Hello, This doesn't answer the question, but in portuguese it works as expected. > x <- as.Date("2017-06-05") > months(x) [1] "junho" > weekdays(x) [1] "segunda-feira" > sessionInfo() R version 3.4.0 (2017-04-21) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 7 x64 (build 7601) Service Pack 1 Matrix products: default
2011 Apr 12
2
regular expression question
Dear R People: I have a data frame with the following column names: > names(funky) [1] "UHD.1" "UHD.2" "UHD.3" "UHD.4" "L..W..1" "L..W..2" "L..W..3" [8] "L..W..4" "B..W..1" "B..W..2" "B..W..3" "B..W..4" "W..B..1" "W..B..2" [15]
2017 Sep 02
6
Strange lazy evaluation of default arguments
Dear R developers, sessionInfo() below Please have a look at the following two versions of the same function: 1. Intended behavior: > Su1 = function(u=100, l=u, mu=0.53, sigma2=4.3^2) + { + print(c(u, l, mu)) # here, l is set to u?s value + u = u/sqrt(sigma2) + l = l/sqrt(sigma2) + mu = mu/sqrt(sigma2) + print(c(u, l, mu)) + } > > Su1() [1] 100.00 100.00 0.53 [1]
2012 Dec 08
1
file.link fails on NTFS
Windows 7 64-bit, R 2.15.2 i386. Working directory is on an NTFS drive. > writeLines("", "file.txt") > file.link("file.txt", "link.txt") Warning in file.link("file.txt", "link.txt") : cannot link 'link.txt' to 'link.txt', reason 'The system cannot find the file specified' No link is created. The
2012 Dec 10
1
qplot error -
Dear friends, I'm on windows, R 2.15.1 - library(ggplot2) #compiled under 2.15.2 qplot(mpg, wt, data=mtcars, colour=cyl) # directly from the qplot help Error in rename(x, .base_to_ggplot, warn_missing = FALSE) : could not find function "revalue" Is that due to a .1 lack in R All the best Troels Ring
2008 Feb 06
1
box.Cox.powers() warning
Dear Rlist, Using an example in box.cox.powers() help, I have the following warning message. example: library(car) >attach(Prestige) > box.cox.powers(income) Box-Cox Transformation to Normality Est.Power Std.Err. Wald(Power=0) Wald(Power=1) 0.1793 0.1108 1.6179 -7.4062 L.R. test, power = 0: 2.7103 df = 1 p = 0.0997 L.R. test, power = 1: 47.261 df = 1 p = 0
2009 Jul 08
5
R regular expression to extract words with the query string.
Hi, Is there a way in R to get the string which matches the expression, where the expression is a substring of the parent string. Lets say, I have $i <- "transcript:ENST0000112334 pid:ENSP000012345" What I need is the string "pid:ENSP000012345" from $i using the query "ENSP". Appreciate your comments. Praveen Surendran School of Medicine and