search for: list0

Displaying 11 results from an estimated 11 matches for "list0".

Did you mean: list
2008 Mar 30
1
package.skeleton.S4
...lt;- grep("^\\.", list) internalObjs <- list[internalObjInds] if (any(internalObjInds)){list <- list[-internalObjInds]}else{} ### Remplace strange char by "_" and check the name validity (but only if code_file is user define) if (!use_code_files){ list0 <- gsub("[[:cntrl:]\"*/:<>?\\|]", "_", list) wrong <- grep("^(con|prn|aux|clock\\$|nul|lpt[1-3]|com[1-4])(\\..*|)$",list0) if (length(wrong)){list0[wrong] <- paste("zz", list0[wrong], sep = "")}else{} ok...
2018 Feb 23
0
Remove "Duplicate" emails (and documentation update)
...unk and Sent but if that is possible I can?t find the right > syntax. You mean to remove duplicates from any 2 mailboxes, or remove duplicates in mailboxes also found in Archive? If the latter, try doveadm -f table fetch -u kremels \ hdr.message-id \ mailbox Archive \ | sort -b >list0 doveadm -f table fetch -u kremels \ 'hdr.message-id guid uid' \ NOT mailbox Archive \ NOT mailbox Junk \ NOT mailbox Sent \ | sort -b >list1 The list of duplicate message-id, guid and uid will then be ... join -j1 list0 list1 You can process it via awk with one inv...
2007 Nov 25
0
[LLVMdev] OCaml
> On Sunday 25 November 2007 03:42, Christopher Lamb wrote: >> Try this google query. I know there's been some discussion/work on >> OCaml and LLVM. >> >> site:lists.cs.uiuc.edu/pipermail/llvmdev OCaml interface > > I just rediscovered the OCaml bindings in bindings/ocaml (rather than the > ones > in test/Bindings/OCaml!). They do indeed look quite
2007 Nov 25
2
[LLVMdev] OCaml
On Sunday 25 November 2007 03:42, Christopher Lamb wrote: > Try this google query. I know there's been some discussion/work on > OCaml and LLVM. > > site:lists.cs.uiuc.edu/pipermail/llvmdev OCaml interface I just rediscovered the OCaml bindings in bindings/ocaml (rather than the ones in test/Bindings/OCaml!). They do indeed look quite complete but I can't find any examples
2007 Nov 25
2
[LLVMdev] OCaml
..."-"; e2 = expr -> BinOp(`Sub, e1, e2) ] | [ e1 = expr; "*"; e2 = expr -> BinOp(`Mul, e1, e2) ] | [ e1 = expr; "<"; e2 = expr -> BinOp(`Less, e1, e2) ] | [ "("; e = expr; ")" -> e ] | [ f = STRING; "("; args = LIST0 expr; ")" -> Call(f, args) ] | [ "def"; f = STRING; "("; vars = LIST0 [ s = STRING -> s ]; ")"; body = expr -> Function(f, vars, body) ] | [ x = FLOAT -> Num(float_of_string x) ] | [ v = LIDENT -> Var v ] ]; END;; Probably be...
2018 Feb 23
3
Remove "Duplicate" emails
In a quest to remove ?duplicate? messages sent to both me and lists I subscribe to I came up with this, which I think should clean out my Archive folder, but I?ve been unable to get it to work for scanning all on my list-user email. $ doveadm -f table fetch -u kremels 'hdr.message-id guid uid hdr.x-listname' mailbox "Archive" | sort| awk 'cnt[$1]++{if (cnt[$1]==2) print
2013 Jun 04
0
bug in package.skeleton(), and doc typo.
...a subset of the objects in that environment. I believe to have found the problem: in package.skeleton() body, the two calls to dump(): > dump(internalObjs, file = file.path(code_dir, sprintf("%s-internal.R", name))) > dump(item, file = file.path(code_dir, sprintf("%s.R", list0[item]))) should use the extra argument: envir=environment There's also a typo in the doc: The sentence: > Otherwise list defaults to the non-hidden **files** in environment (those whose name does not start with .) should be > Otherwise list defaults to the non-hidden **objects** in envir...
2005 Mar 18
2
package.skeleton
> R.version.string [1] "R version 2.1.0, 2005-03-17" I don't see anything in either https://svn.r-project.org/R/trunk/NEWS or in the Changes file for R-2.1.0 about changes in package.skeleton() (nor in the help page), but when I run this function, all the .Rd files produced are of the data format even if all I have in my .GlobalEnv are functions. A trivial example is to run the
2008 May 02
1
How to parse XML
I would like to learn how to parse a mixed text/xml document I downloaded from the sec.gov website (see example below). I would like to parse this to get the value for each xml tag and then access it within R, but I don't know much about xml so I don't even know where to start debugging the errors I am getting in this example code. Can anyone help me get started? Thanks, Roger ftp
2007 Nov 26
0
[LLVMdev] Fibonacci example in OCaml
...-> Apply(f, x) ] | [ v = LIDENT -> Var v | n = INT -> Int(int_of_string n) | "("; e = expr; ")" -> e ] ]; defn: [ [ "let"; "rec"; f = LIDENT; x = LIDENT; "="; body = expr -> LetRec(f, x, body) ] ]; prog: [ [ defns = LIST0 defn; "do"; run = expr -> defns, run ] ]; END open Printf let program, run = try Gram.parse prog Loc.ghost (Stream.of_channel (open_in "fib.ml")) with | Loc.Exc_located(loc, e) -> printf "%s at line %d\n" (Printexc.to_string e) (Loc.start_line loc);...
2007 Nov 25
2
[LLVMdev] Fibonacci example in OCaml
Here's my translation of the Fibonacci example into OCaml: open Printf open Llvm let build_fib m = let fibf = define_function "fib" (function_type i32_type [| i32_type |]) m in let bb = builder_at_end (entry_block fibf) in let one = const_int i32_type 1 and two = const_int i32_type 2 in let argx = param fibf 0 in set_value_name "AnArg" argx; let