search for: patt

Displaying 20 results from an estimated 69 matches for "patt".

Did you mean: path
2019 Jul 02
1
eliminate a partial argument match warning in R CMD check
...`R CMD check --as-cran whatever_x.y.z.tar.gz`. I generally work with these options set: options( warnPartialMatchArgs = TRUE, warnPartialMatchAttr = TRUE, warnPartialMatchDollar = TRUE ) And I see this: * checking use of SHLIB_OPENMP_*FLAGS in Makefiles ...Warning in dir("src", patt = "[.]c$") : partial argument match of 'patt' to 'pattern' Warning in dir("src", patt = "[.](cc|cpp)$") : partial argument match of 'patt' to 'pattern' Warning in dir("src", patt = "[.]f$") : partial argument ma...
2008 Oct 07
3
vectorized sub, gsub, grep, etc.
R pattern-matching and replacement functions are vectorized: they can operate on vectors of targets. However, they can only use one pattern and replacement. Here is code to apply a different pattern and replacement for every target. My question: can it be done better? sub2 <- function(pattern, replac...
2014 Apr 26
2
[supermin] Be smarter about finding suitable kernel images
--- src/kernel.ml | 43 ++++++++++++++++++++++++++++--------------- 1 file changed, 28 insertions(+), 15 deletions(-) diff --git a/src/kernel.ml b/src/kernel.ml index ed5aea3..436b1b0 100644 --- a/src/kernel.ml +++ b/src/kernel.ml @@ -23,6 +23,19 @@ open Utils open Ext2fs open Fnmatch +let patt_of_cpu host_cpu = + let models = + match host_cpu with + | "mips" | "mips64" -> [host_cpu; "*-malta"] + | "ppc" | "powerpc" -> ["ppc"; "powerpc"] + | "sparc" | "sparc64" -> ["sparc&q...
2014 Apr 28
2
Re: [supermin] Be smarter about finding suitable kernel images
...insertions(+), 15 deletions(-) >> >> diff --git a/src/kernel.ml b/src/kernel.ml >> index ed5aea3..436b1b0 100644 >> --- a/src/kernel.ml >> +++ b/src/kernel.ml >> @@ -23,6 +23,19 @@ open Utils >> open Ext2fs >> open Fnmatch >> >> +let patt_of_cpu host_cpu = >> + let models = >> + match host_cpu with >> + | "mips" | "mips64" -> [host_cpu; "*-malta"] >> + | "ppc" | "powerpc" -> ["ppc"; "powerpc"] looks like I missed powerpc64....
2010 Dec 23
2
a simple question for a newbie
...not work without giving a password... Last question: as far as I understand, the share print$ is to upload a printer driver from a windows computer, is there a way to install these drivers directly on the linux samba server, and where can I find windows drivers to do this. Thanks. - -- Fran?ois Patte UFR de math?matiques et informatique Universit? Paris Descartes 45, rue des Saints P?res F-75270 Paris Cedex 06 T?l. +33 (0)1 4286 2145 http://www.math-info.univ-paris5.fr/~patte -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozd...
2017 Sep 20
4
[PATCH 0/4] Replace some uses of the Str module with PCRE.
Str is a pretty ugly regexp module. Let's try to replace it with PCRE. This series of commits goes some small way towards that eventual goal. - - - I wonder if there was a deep reason why we had this? let unix2dos s = String.concat "\r\n" (Str.split_delim (Str.regexp_string "\n") s) I replaced it with what I think should be (nearly) equivalent: let unix2dos s =
2010 Sep 01
0
problems with JGR and standard R GUI closing during calculations
...ata and close when I try to read the second time series in. This is before I even try to really run the calculation where I am trying to read a value from one time series off of the other. Script: ###load libraries library(chron) ###define functions ## read SMPS read.smps <- function(filename,patt="%m/%d/%Y %H:%M:%S") { f <- file(filename,open="rt") header <- scan(f,what="",quiet=TRUE,sep="\t",nlines=1) smps <- read.table(f,check.names=FALSE,comment.char="",sep="\t", colClasses=c("character&q...
2016 Feb 13
1
dual head question
...w (Emacs, skype, rxvt....) the X server crashes..... I don't know what is reponsible: nvidia driver or Qt, but I do need to use Emacs and some other application using Qt. Is there a solution to my problem: load an icc profile for each screen with the nouveau driver? Thank you - -- François Patte UFR de mathématiques et informatique Laboratoire CNRS MAP5, UMR 8145 Université Paris Descartes 45, rue des Saints Pères F-75270 Paris Cedex 06 Tél. +33 (0)1 8394 5849 http://www.math-info.univ-paris5.fr/~patte -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAla++xwACgkQdE6C2dhV2JU+8g...
2017 Sep 22
27
[PATCH v3 00/22] Replace almost all uses of the Str module with PCRE.
v1: https://www.redhat.com/archives/libguestfs/2017-September/msg00135.html v2: https://www.redhat.com/archives/libguestfs/2017-September/msg00158.html v3 is almost identical to v2, but I have added 4 extra commits to almost finish the job of replacing Str everywhere possible (note it's not possible to replace Str in common/mlstdutils or the generator because those are pure OCaml). As
2008 Feb 26
2
Combining series of variables using identifier
R users, I have df like this a <- data.frame( indx = 1:20, var1 = rep(c("I20", "I40", "A50", "B60"), each=5), var1_lab= rep(c("cat", "dog", "mouse", "horse"), each=5), var2 = rep(c("B20", "X40", "D50",
2007 Aug 13
0
Change in grep functionality causes Rd_db to fail silently (PR#9846)
...to Rd_db, a call is made to list_files_with_exts(). The functionality of the relevant section of that function in 2.4.0 is replicated here: > dir [1] "/usr/local/packages/R-2.4.0-acml/lib64/R/library/base/man" > files <- list.files(dir) > files [1] "base.Rd.gz" > patt [1] "\\.(Rd|rd|Rd.gz|rd.gz)$" > grep(patt, files, value = TRUE) [1] "base.Rd.gz" In 2.5.1, the behaviour of grep() seems to have changed: > dir [1] "/usr/local/packages/src/R-2.5.1/library/base/man" > files <- list.files(dir) > files [1] "base.Rd...
2008 Aug 05
1
About Creating a List by Parsing Text
...ut [['211952_at']] $ll.list [1] -970.692 -965.35 -963.669 [['213301_x_at']] $ll.list [1] -948.527 -947.275 -947.379 etc. How can I achieve that? I am stuck with the following construct __BEGIN__ comp.ll <- model_all[grep("Gene .* k=.*", model_all)] print(comp.ll) patt <- "Gene \\d+ ([\\w-/]+) [\\w-]+ k= (\\d) LL= ([-]\\d+\.\\d+)" nresk <- unlist(strsplit(sub(patt, "\\1 \\2 \\3",comp.ll,perl=TRUE)," ")) __END__ - Gundala Viswanath Jakarta - Indonesia
2012 Aug 01
2
add vectors to multiple objects
Hi everyone, I try to add many vectors (L1,L2,L3....) to many list objects (a.list, b.list....) in a workspace. Somethings like below, but it is not working. Any suggestions will be appreciated. Best, John lf=ls(pattern=".lst")  for (x in listfiles) {     dat=read.delim(x,header=F)     for (i in 1: lf) {     assign(i$add,as.numeric(dat[,3]))   #or i$add=as.numeric(dat[,3]     names(i)[names(i)=="add"]=substr(x,1,5)     print (i[1:3,])  } } [[alternative HTML version deleted]]
2010 Sep 08
2
subbing a string vector for another string vector
I have a data frame with two columns: image pattern 1 http://$IMAGE_ID$ www.url.com/image.jpg 2 $IMAGE_ID$ http://www.blah.com/image.gif ... I want to replace "$IMAGE_ID$" with the corresponding entry in the pattern column such that the result would appear as follows: url http://www.url.com/image....
2007 Nov 13
2
cbind function
Hello everyone, I would like to use the "cbind" function to construct a dataset, combining some variable I defined before. The codes are something like var1 <- ... var2 <- ... var2 <- ... ... data <- cbind(var1,var2,var3...) The problem is I would like some flexibity in the data, i.e. the number of the variables are not fixed. Is there a method of combine the uncertain
2004 Jan 30
0
Cannot resolve name <name>#0x3
..., in both case, with the -M option the answer is the same. samba-2.2.7a-8.9.0 on linux redhat-9 It used to work with the same configuration, the only thing which may have change is the samba, nmb ... version, as the linux box is automatically up2dated. Thank you for any information -- Fran?ois Patte -- Fran?ois Patte Inde : Ecole fran?aise d'Extr?me-Orient Deccan College Pune 411006 T?l : (00 91) (0) 20 26 69 39 04 France : Universit? Ren? Descartes - Paris 5 UFR de math?matiques et informatique http://www.math-info.univ-paris5.fr/~patte
2008 Mar 02
1
summarizing matrix data
Hi everyone, I'm sure this is simple, but I can't seem to figure this out. Situation. 3 different groups of subjects each submit n X n matrices of scores. What I want to do is aggregate each group of scores into a summary n X n matrix. I need the result to be a matrix so that I can calculate a dissimilarity structure on it. So I thought I would create a multi-dimensional array and
2010 Mar 11
2
[PATCH FOR DISCUSSION ONLY] Rewrite libguestfs-supermin-helper in C.
...args); + + if (err < 0) return; + + fprintf (stderr, "supermin helper [%05" PRIi64 "ms] %s\n", + timeval_diff (&start_t, &tv), msg); + + free (msg); +} + +static char **read_dir (const char *dir); +static char **filter_fnmatch (char **strings, const char *patt, int flags); +static char **filter_notmatching_substring (char **strings, const char *sub); +static void sort (char **strings, int (*compare) (const void *, const void *)); +static int isdir (const char *path); + +static int +reverse_filevercmp (const void *p1, const void *p2) +{ + const char *s1...
2017 Sep 21
18
[PATCH v2 00/18] Replace many more uses of the Str module with PCRE.
v1 was here: https://www.redhat.com/archives/libguestfs/2017-September/msg00135.html This is a more complete evolution of the earlier patch. It replaces most important uses of Str with PCRE throughout the code. It also extends the bindings with some useful features like case-insensitive regexps. The main places I *didn't* touch are the generator (GObject uses Str extensively); and
2011 May 17
3
gsub() issue...
Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?... Nom : non disponible URL : <https://stat.ethz.ch/pipermail/r-help/attachments/20110517/1812d6c6/attachment.pl>