search for: runcode

Displaying 20 results from an estimated 24 matches for "runcode".

2011 Mar 23
3
Sweave: multiple graphic formats, e.g. win.metafile
...RweaveLatexSetup setupsrc <- deparse(setup) epsline <- grep("eps", setupsrc) setupsrc[epsline] <- sub("eps = TRUE", "eps = FALSE, emf = FALSE", setupsrc[epsline]) setup <- eval(parse(text=setupsrc)) # 'makeRweaveLatexCodeRunner' function makeruncode <- function(evalFunc=utils::RweaveEvalWithOpt) { runcode <- utils:::RweaveLatexRuncode runcodesrc <- deparse(runcode) epsline1 <- grep("cat(.. eps..)", runcodesrc) runcodesrc <- append(runcodesrc, " if (options$emf) cat(\" emf\")", aft...
2013 Jan 08
2
[LLVMdev] ExecutionEngine always comes back NULL
Sorry I forgot to add code that I use to run code: /* Executes the AST by running the main function */ GenericValue CodeGenContext::runCode() { std::cout << "Running code...\n"; ExecutionEngine *ee = EngineBuilder(module).create(); vector<GenericValue> noargs; GenericValue v = ee->runFunction(mainFunction, noargs); std::cout << "Code was run.\n"; return v; } Il 08/01/2013 16:38, Manuele Conti...
2010 Jul 26
2
Trouble using grid.layout in Sweave
...w=x, layout.pos.col=y) print(pl$gscoreDist, vp=vlay(1,1)) print(pl$acceptDist, vp=vlay(2,1)) dev.off() @ The error is the following from Sweave: Error in grid.newpage() : Non-finite location and/or size for viewport In addition: There were 24 warnings (use warnings() to see them) Error in driver$runcode(drobj, chunk, chunkopts) : Error in grid.newpage() : Non-finite location and/or size for viewport Calls: Sweave -> <Anonymous> Execution halted Any hints? Of course, I can always wrap the code into a fig=FALSE, and pdf()-call, but that is not how sweave is meant to be used, as I got it...
2013 Jan 08
0
[LLVMdev] ExecutionEngine always comes back NULL
On Jan 8, 2013, at 8:09 , Manuele Conti <manuele.conti at sirius-es.it> wrote: > Sorry I forgot to add code that I use to run code: > /* Executes the AST by running the main function */ > GenericValue CodeGenContext::runCode() { > std::cout << "Running code...\n"; > ExecutionEngine *ee = EngineBuilder(module).create(); > < > div class="line" id="LC37" style="margin: 0px; padding: 0px 0px 0px 10px; border: 0px;"> > vector<GenericValue> noargs; &...
2003 Apr 02
2
pacf.mts
I am getting the following: *** Weave Errors *** Error in driver$runcode(drobj, chunk, chunkopts) : Error in eval(expr, envir, enclos) : couldn't find function "pacf.mts" *** Source Errors *** Error in eval(expr, envir, enclos) : couldn't find function "pacf.mts" make[1]: *** [checkVignettes] Error 1 I don't really understand t...
2007 May 18
1
How to extract R codes that embedded in a HTML file
...nw file with HTML due to there is no proper > driver available (like RweaveHTML driver for Sweave)? If yes, does R2HTML > package have plans to provide a such driver? > ....Tao The following does the trick for me: R> mytangle <- function () list(setup = RtangleSetup, runcode = utils:::RtangleRuncode, writedoc = RtangleWritedoc, finish = utils:::RtangleFinish, checkopts = RweaveHTMLOptions) R> Stangle("/PATH/TO/R/SITE-LIBRARY/R2HTML/samples/example1.snw", driver=mytangle) Writing to file example1.R Best, Fritz
2010 Nov 29
1
Sweave choking on \\ in filename
...ot;) Writing to file deelnemerslijst.tex Processing code chunks ... 1 : echo term verbatim Error: chunk 1 Error : '\B' is an unrecognized escape in character string starting "Q:\B" > traceback() 4: stop(msg, err, call. = FALSE) 3: RweaveTryStop(chunkexps, options) 2: driver$runcode(drobj, chunk, chunkopts) 1: Sweave("Q:\\BMK\\cursussen\\interne_opleiding\\deelnemerslijst.Rnw", syntax = "SweaveSyntaxNoweb") > sessionInfo() R version 2.12.0 (2010-10-15) Platform: i386-pc-mingw32/i386 (32-bit) locale: [1] LC_COLLATE=Dutch_Belgium.1252 LC_CTYPE=D...
2003 Apr 09
1
'Apparently' trouble with name spaces and Sweave...
...ima.tr2, quine, Rabbit, road, rock, rotifer, Rubber, ships, shoes, shrimp, shuttle, Sitka, Sitka89, Skye, snails, SP500, steam, stormer, survey, synth.te, synth.tr, topo, Traffic, UScereal, UScrime, VA, waders, whiteside, wtloss Error in library(MASS) : package/namespace load failed Error in driver$runcode(drobj, chunk, chunkopts) : Error in library(MASS) : package/namespace load failed Error in buildVignettes(dir = ".") : Error in driver$runcode(drobj, chunk, chunkopts) : Error in library(MASS) : package/namespace load failed Execution halted ----- End forwarded messa...
2004 Oct 19
2
Sweave and Trellis in R 2.0.0patched (Windows)
...he following error: > Sweave("M:\\Engineering\\Shawn\\BMF\\MECO\\Clean Steam\\32-04.rnw") Writing to file 32-04.tex Processing code chunks ... 1 : term hide eps pdf Error in "[<-"(`*tmp*`, pos.heights[[nm]], value = numeric(0)) : nothing to replace with Error in driver$runcode(drobj, chunk, chunkopts) : Error in "[<-"(`*tmp*`, pos.heights[[nm]], value = numeric(0)) : nothing to replace with > Data.plot has the following structure: > str(data.plot) `data.frame': 436 obs. of 13 variables: $ DateTime Sampled:`POSIXct', format: chr "200...
2023 Jan 31
1
[libnbd PATCH v2 3/3] nbdsh: Improve --help and initial banner contents.
...remote disk. buf = h.pread(512, 0) # Read the first sector. exit() or Ctrl-D # Quit the shell help(nbd) # Display documentation nbd> print(h) Traceback (most recent call last): File "/usr/lib64/python3.11/code.py", line 90, in runcode exec(code, self.locals) File "<console>", line 1, in <module> NameError: name 'h' is not defined > I'm not sure what is the issue, but usually if you have a global > variable created only in > some flows, adding: > > thing = None > &g...
2023 Jan 31
1
[libnbd PATCH v2 3/3] nbdsh: Improve --help and initial banner contents.
...2, 0) # Read the first sector. > exit() or Ctrl-D # Quit the shell > help(nbd) # Display documentation > > nbd> print(h) > Traceback (most recent call last): > File "/usr/lib64/python3.11/code.py", line 90, in runcode > exec(code, self.locals) > File "<console>", line 1, in <module> > NameError: name 'h' is not defined Eww. I didn't mean for that to happen, obviously. > > > I'm not sure what is the issue, but usually if you have a global > >...
2019 Jun 17
2
[nbdkit PATCH] extents: Cap maximum reply length
...dsh ... nbd> h.connect_tcp("localhost","10809") nbd> def f(data,metacontext,offset,e): ... print ("entries:%d" % len(e)) ... nbd> h.block_status(9*1024*1024,0,0,f) Traceback (most recent call last): File "/usr/lib64/python3.7/code.py", line 90, in runcode exec(code, self.locals) File "<console>", line 1, in <module> File "/home/eblake/libnbd/python/nbd.py", line 577, in block_status return libnbdmod.block_status (self._o, count, offset, data, extent, flags) RuntimeError: nbd_block_status: invalid server re...
2007 Jun 28
4
Sweave bug? when writing figures / deleting variable in chunk
...riting to file bug2.tex Processing code chunks ... 1 : echo term verbatim 2 : echo term verbatim pdf Error: no function to return from, jumping to top level Error in plot(trees[sel, ]) : error in evaluating the argument 'x' in selecting a method for function 'plot' Error in driver$runcode(drobj, chunk, chunkopts) : Error in plot(trees[sel, ]) : error in evaluating the argument 'x' in selecting a method for function 'plot' The generated .tex is complete up through the rm() but no figure is generated. The file bug2-002.pdf is incomplete (corrupt). ... \begin{Sch...
2013 Jan 09
1
[LLVMdev] ExecutionEngine always comes back NULL
...e Il 08/01/2013 20:27, Rick Mann ha scritto: > On Jan 8, 2013, at 8:09 , Manuele Conti <manuele.conti at sirius-es.it> wrote: > >> Sorry I forgot to add code that I use to run code: >> /* Executes the AST by running the main function */ >> GenericValue CodeGenContext::runCode() { >> std::cout << "Running code...\n"; >> ExecutionEngine *ee = EngineBuilder(module).create(); >> < >> div class="line" id="LC37" style="margin: 0px; padding: 0px 0px 0px 10px; border: 0px;"> >> vector<Generi...
2013 Jan 08
0
[LLVMdev] ExecutionEngine always comes back NULL
Hi Rick, I had the same problem last week I understand that I didn't initialized target. Cheers, Manuele Il 08/01/2013 16:08, Rick Mann ha scritto: > I wrote a little OS X app to assemble some LLVM (human-readable) code and run it. Unfortunately, my ExecutionEngine won't create. Just comes back NULL. > > This is the code that builds it: > > http://pastebin.com/8cexgPj7
2005 Jul 06
4
Tempfile error
Dear List: I am encountering an error that I can't resolve. I'm looping through rows of a dataframe to generate individual tex files using Sweave. At random points along the way, I encounter the following error Error in file() : cannot find unused tempfile name At which point Sweave halts. There isn't a logical pattern that I can identify in terms of why the program stops at
2020 Jul 08
1
Adding RtangleRuncode and RtangleFinish to exports of utils
Hi, Could R-Core consider adding 'RtangleRuncode' and 'RtangleFinish' to the exports of utils. Their weave equivalent 'makeRweaveLatexCodeRunner' and ?'RweaveLatexFinish' are exported, as well as the other tangle utility functions 'RtangleSetup' and 'RtangleWritedoc'. The rationale is not just symmetry...
2023 Jan 31
1
[libnbd PATCH v2 3/3] nbdsh: Improve --help and initial banner contents.
On Tue, Jan 31, 2023 at 12:34 AM Richard W.M. Jones <rjones at redhat.com> wrote: > > On Fri, Nov 04, 2022 at 04:18:31PM -0500, Eric Blake wrote: > > Document all options in --help output. If -n is not in use, then > > enhance the banner to print the current state of h, and further tailor > > the advice given on useful next steps to take to mention opt_go when >
2020 Aug 14
0
[libnbd PATCH v2 12/13] wip: api: Give aio_opt_go a completion callback
...; h.opt_go() nbdkit: eval: error: /tmp/nbdkitNyQD8J/open: ENOENT nbd> h.set_export_name('b') nbd> h.opt_go() nbdkit: eval: error: /tmp/nbdkitNyQD8J/open: ENOENT nbd> h.set_opt_mode(True) Traceback (most recent call last): File "/usr/lib64/python3.8/code.py", line 90, in runcode exec(code, self.locals) File "<console>", line 1, in <module> File "/home/eblake/libnbd/python/nbd.py", line 570, in set_opt_mode return libnbdmod.set_opt_mode (self._o, enable) nbd.Error: nbd_set_opt_mode: invalid state: NEGOTIATING: the handle must be n...
2010 May 28
1
Does Sweave run in the global environment ?
Hello It seems that sweave always runs in the global environment. I want to run sweave from within a function, and pass a variable into sweave, however when I do this, sweave doesn't see the variable. Here's my example test_sweave.Rnw file |% \documentclass[a4paper]{article} \usepackage[OT1]{fontenc} \usepackage{Sweave} \begin{document} \title{Test Sweave Document} \author{Paul