similar to: R brush for SyntaxHighlighter

Displaying 20 results from an estimated 200 matches similar to: "R brush for SyntaxHighlighter"

2007 Sep 04
1
Variable scope in a function
Hello, I apologise in advance for this question; I'm sure it is answered in the documentation or this mailing list many times, however the answer has eluded me. I'm trying to write a function where I don't want external variables to be scoped in from the parent environment. Given this function: test_func = function() { if (exists("kat") == FALSE) {
2009 Dec 08
2
automated image processing
Hi, I am looking for a R package which is capable to process and analysis pictures of tissues (stained) in an automatic way. I had a look on biops and EBImage (Bioconductor) but they are not automatic... Did you already use/know a such package ? Thanks, - Martial _________________________________________________________________ Tchattez en direct en en vidéo avec vos amis !
2009 Dec 02
2
Arithmetic on multiple files
Dear R-users, I'd like to perform arithmetic functions on 1000 files containing a 2000x2000 matrix. Can anyone advise? For example, File1 File2 Output 1 1 1 4 4 4 5 5 5 2 2 2 + 5 5 5 = 7 7 7 3 3 3 6 6 6 9 9 9 Muhammad -- Muhammad Rahiz | Doctoral Student in Regional Climate Modeling Climate Research
2009 Dec 04
2
selective subsetting of a correlation matrix
Dear All, I have a correlation matrix say 'M' (4000x4000) for 4000 genes and I want to subset it to 'N' (190x190) for 190 genes. The list of those 190 genes are in variable 't'. So the idea is to read the names of genes from variable 't' and subset the matrix M accordingly. Any thoughts are welcome! Best Lee [[alternative HTML version deleted]]
2009 Dec 01
4
Package is loaded but functions are not exported
Hello, I wrote a package, which in the NAMESPACE file exports functions like this: exportPattern("^\\rh") On R-2.8 (Linux, 64), upon loading the package I have the rh functions present. On R-2.10, Mac OS X, (32 bit), it builds, loads, but the functions are not loaded, i.e the only function is rhyper (which is not from my package). Is there something wrong with my package setup?
2005 May 25
1
Using a C++ library to read a binary file
Hello, I am trying to use a C++ library I have to read some data into R. I've gone over the "Writing R Extensions" page and some of the archives, but am left somewhat confused (and I'm still very new to R!). What I want to do is fairly simple. Given some parameters, I'd like to read a string of numbers from a proprietary binary file into an array. I have a C++
2009 Dec 15
1
S4 dispatch and S3 "connection" objects
Hello, I'm trying to get S4 dispatch on S3 "connection" objects. So I do : setOldClass( "connection" ) and then : setGeneric( "bling", function(object) standardGeneric( "bling" ) ) setMethod( "bling", "connection", function(object) cat( "gotcha ", as.integer(object), "\n" ) ) but I get : f <- file(
2009 Dec 15
2
split.data.frame
Hello, I very much enjoy "with" and "subset" semantics for data frames and was wondering if we could have something similar with split, basically by evaluating the second argument "with" the data frame : split.data.frame function(x, f, drop = FALSE, ...){ call <- match.call( ) fcall <- call( "with", data = call[["x"]],
2010 Apr 22
0
Community help: creating Syntax-Highlighter-brush for R and WordPress.com
Hello dear R community, *Background:* Since I see more and more R users who blog about R opening their blogs in WordPress.com, I contacted one of their workers asking if they could add Syntax highlight support for R. He replied to me saying that if there was a "Brush" for R, according to the format given here:
2009 Dec 14
1
Printing to PDF in for
Hi everybody, I would like to ask if it is possible using pdf function or some other to print plots in cycle such that every new plot is on new page. like this pdf(file="D:/Plot.pdf",width = 9.25,height=9.25, family="Helvetica",pointsize=8,bg="white") for (i in 1:10){ x <- seq(1,40,1) y <- 2*x+1+5*rnorm(length(x)) hist(y,freq = FALSE) plot(density(y)) }
2009 Dec 15
3
Redirect standard output (PR#14148)
Full_Name: Joe Song Version: 2.10.0 OS: Windows 7 Submission from: (NULL) (97.123.159.234) Symptom: The following command in R > system("program > run.log") would not redirect standard output to the file "run.log". This bug did not exist on Windows XP, but appeared on Windows 7 when the same program is run.
2008 Mar 27
1
R Code and the Pygments Python SyntaxHighlighter
Dear R Help, is someone going to write a R/S language lexer for the Pygments Python syntax highlighter <http://pygments.org/>? As it is used now by Trac, Django, or the Python documentation tool Sphinx, the R community can apply it in Python-based Wikis like Moinmoin and others. Hans Werner
2009 Jun 30
4
conditional coloring of output text in console or in GUI
suppose I have some logical vector x <- as.logical(c(0,0,0,1,0,0,1,1,0)) x How would I make the words TRUE appear on the screen in a different color from the words FALSE? Thanks. --Chris -- Christopher W. Ryan, MD SUNY Upstate Medical University Clinical Campus at Binghamton 40 Arch Street, Johnson City, NY 13790 cryanatbinghamtondotedu "If you want to build a ship, don't drum
2009 Dec 14
2
Combinations
Dear R helpers,   I am working on the scenario analysis pertaining to various interest rates. In this connection I need to form the various combinations as under :   Suppose I have two sets A = (a, b, c) and B = (x,y,z)   Then I can easily form the cominations as (ax, ay, az, bx, by, bz, cx, cy, cz)   However, if I have say 5 variables, then total no of possible combinations will be 3^5 = 243.
2010 Sep 09
2
Help request: highlighting R code on WordPress.com blogs
Hello dear R help members (and also Yihui and Romain), There are currently 28 R bloggers (out of the 117 R-bloggers<http://www.r-bloggers.com/>I know of) that are using wordpress.com for publishing their R code (and I suspect this number will increase with time). WordPress.com doesn't support R syntax highlighting, nor can it be embedded from other services (like gist
2010 Feb 23
3
colour highlighting inputs and outputs in the R terminal?
Dear all Is it possible to get basic colour highlighting for inputs and outputs in the R terminal? I am looking for something similar to what GUIs provide, such as JGR and (I think) the Windows R GUI: colouring all inputs in red, and all outputs in blue. All this in a colour-aware console (in my case, on Linux). I've been looking into xterm256 and highlight, but I am sofar unable to do with
2009 Dec 13
1
How to resolve include Rcpp.h problems?
Hi, I am Linux Ubuntu 9.04 user. I'm using R-2.6. Actually, I am developing R package for reading/writing 3D images. I needed to use the R package Rcpp in order to make profit of available C/C++ codes. My problem is that my C code is not able to include the Rcpp.h In fact, when I run this command R CMD build rply, I got the following error message in the file
2009 Dec 17
2
issue with using rm: cannot generate on-the-fly list
Hello, I have the following problem when trying to use rm: In a top level script file I have a loop iterating over some index. The loop is not contained within a function, so the scope of variables declared in the loop is global. Within this loop I generate several variables which should be removed at the end of each iteration. To do this, I wrote a function to clean up the workspace. An example
2009 Dec 02
4
problems installing R packages
Hi, I?m trying to install new package in R (version 2.4.0) under windows vista and i have problems. I always receive the same message: Erro en zip.unpack(pkg, tmpDir) : no fue posible abrir el archivo 'C:/Program Files/R/R-2.4.0/library/file2019500d/mprobit/libs/mprobit.dll' It can?t open the file. I check the compatibility with the version and is ok, I have no idea where's the problem
2012 Apr 12
1
Support for R in highlight.js
Hello, I'm the maintainer of a syntax highlighting tool highlight.js[1]. Recently the Kaggle project has announced they wanted to sponsor the development of the R highlighting definition for it[2]. I wanted to drop a line about it here since I suspect this list has much more R programmers on it than our small discussion group :-). So if you're interested and don't mind touching a