Displaying 20 results from an estimated 40000 matches similar to: "defining a print method"
2004 Dec 29
3
Windows vignettes, shQuote, texi2dvi
I noticed a shQuote fix for Windows in the svn logs.
Just wanted to point out that this will favorably
affect texi2dvi on Windows which previously used
UNIX quoting and so generated an incorrect Windows
command. (Note that texi2dvi is used when creating
vignettes.)
Another problem is that the recommended tex
distribution for Windows, fptex, does not have texi2dvi
in the first place. The
2006 Apr 12
9
Showing Images from a file store
Hi all.
I am wrting a small content management tool for my company and was
trying to display some images from our file store shown below.
<td> <img src="\\xx.xx.xxx.xx\xx\xx\xxx\abc.gif"/>
The app was displaying the image when it is under the \public\images
directory.
Is there anything special we need to do to get a file from outside the
root of the application?
Any help
2004 Dec 02
2
regex to match word boundaries
Can someone verify whether or not this is a bug.
When I substitute all occurrence of "\\B" with "X"
R seems to correctly place an X at all non-word boundaries
(whether or not I specify perl) but "\\b" does not seem to
act on all complement positions:
> gsub("\\b", "X", "abc def") # nothing done
[1] "abc def"
>
2008 Jul 23
2
shQuote and cat
Dear R-users,
It is my understanding that cat(shQuote(a.string)) should print the origintal a.string. Is this right?
I am not sure cat() correctly prints strings which are generated by triple-shQuote():
> shQuote(shQuote("a"))
[1] "\"\\\"a\\\"\""
> cat(shQuote(shQuote(shQuote("a"))), '\n')
2008 Jul 23
2
shQuote and cat
Dear R-users,
It is my understanding that cat(shQuote(a.string)) should print the origintal a.string. Is this right?
I am not sure cat() correctly prints strings which are generated by triple-shQuote():
> shQuote(shQuote("a"))
[1] "\"\\\"a\\\"\""
> cat(shQuote(shQuote(shQuote("a"))), '\n')
2010 Feb 25
1
Got Anonymous from DID incoming call and can't re-send to another asterisk with new callerid
Hi,
I have two asterisk servers with the same version of 1.4.29.1.
The first server named it as MYE1. MYE1 is an incoming server that can
accept incoming calls from PSTN(ZAP E1).
The second server is a pbx functions server and named it as MYPBX(SIP).
The sip.conf of MYE1 likes below:
[MYPBX]
type=peer
host=mypbx.abc.com
nat=no
disallow=all
allow=g729
canreinvite=yes
qualify=no
context=default
2004 Jul 26
6
directing print.packageInfo to a file
There was a discussion on r-help of getting the output from
print.packageInfo into a file. Spencer and I have added a file=
argument to print.packageInfo for consideration in R. Had this
been available it would have simplified the answer to that
thread. If the file= argument is used then the packageInfo
information is sent to the file specified rather than displayed
using file.show .
2008 Apr 30
2
wireframe - add data points
Hello all,
I’m trying to add some data points to a wireframe. X an Y axis are independent variables, Z axis is predicted probability. I’d like to add the original data points on which the predicted probabilities are based to the wireframe. I’ve followed some of the previous post on this but get stuck :
## first part yields the wireframe##
setwd("C:/Temp")
rnp <-
2005 Feb 15
1
Apropos sprintf behavior
If changes to sprintf behavior are being considered, would it
be possible to allow some of the other K&R conversion
specifiers?
xX - for integer to hex conversion, and
c - for ascii value to character conversion
would all be useful for me.
Thanks, Steve Dutky
On Mon, 14 Feb 2005 11:02:20 +0000 (GMT), Prof Brian Ripley
wrote:
+On Mon, 14 Feb 2005, Wolfgang Huber wrote:
+
+> Dear
2011 Jan 21
1
Information
Hello
I am student of Bioinformatics and I am doin somework in R in which some
problem occurs. So Please help me to solve these problems.
I have two problems:
1. How to generate a graph in which there are 8 rows and 20 columns are
present?
2. And how to put some title in the end of the graph i.e for example after
generating the rows if I want to give the name in the end of those rows like
2009 Jan 18
8
regex -> negate a word
Dear all,
let's assume I have a vector of character strings:
x <- c("abcdef", "defabc", "qwerty")
What I would like to find is the following: all elements where the word
'abc' does not appear (i.e. 3 in this case of 'x').
Since I am not really experienced with regular expressions, I started
slowly and thought I find all word were
2011 Nov 15
2
Problem creating reference manuals from latex
R Community,
I often am in need of viewing the reference manuals of packages and do not have Internet access. I have used the code:
path <- find.package('tm')
system(paste(shQuote(file.path(R.home("bin"), "R")),"CMD", "Rd2pdf",shQuote(path)))
someone kindly provided from this help list to generate the manuals from the latex files. This
2019 Dec 15
1
system2 doesn't quote stdin on unix, unlike stdout, stderr & input and on Windows
Hi again!
While investigating the bug report [*] I found out that on unix, system2
does not quote its `stdin` argument while preparing the command line to launch.
It does shQuote the `stdout` and `stderr` arguments, and also the `f <-
tmpfile()` variable (which is used if `input` argument is provided),
which seems to set a precedent. On Windows, stdin, stdout, and stderr are handled
2008 Dec 17
1
using dvi with latex object: directory not correctly set, maybe due to error in shQuote()
Dear friends of R,
I want to produce a pdf file with the contents of a matrix. I employ the latex command in combination with dvi, both contained in the Hmisc package. It seems to me that the function does not correctly set the directory.
> tbl.loc <- matrix(1:4, nc=2)
> latex.obj <- latex(tbl.loc)
> dvi(latex.obj)
warning: extra args ignored after 'cd'
H:\PROJECTS\data
2006 Feb 20
2
glob2rx function not working
Dear R users,
Inspired by previous list discussion of the glob2rxc function, I am
attempting to create a new vector called TOTAL by summing all vectors
whose names begin with ABC:
TOTAL = sum(list = ls(pattern = glob2rx("ABC*")))
I'm running R 2.2.1 on Windows XP. Can anyone say what I'm missing?
Thank you, Mark
2008 Nov 03
1
dev2bitmap: extra missing
Hi,
I don't know if I am the first one to report the problem:
in 2.8.0 dev2bitmap gained aa support, but "extra" is null
if neither taa nor naa is specified.
> dev2bitmap("plot.pdf",type="pdfwrite")
Error in paste(shQuote(gsexe), " -dNOPAUSE -dBATCH -q -sDEVICE=", type, :
object "extra" not found
>
2023 Mar 08
1
Augment base::replace(x, list, value) to allow list= to be a predicate?
That's an interesting example, as it's conceptually similar to what
Pavel is proposing, but structurally different. gsubfn() is more
complicated than a simple switch in the body of the function, and
wouldn't work well as an anonymous function.
Multiple dispatch can nicely encompass both of these cases. For replace(),
library(S7)
replace <- new_generic("replace",
2023 Mar 07
1
Augment base::replace(x, list, value) to allow list= to be a predicate?
This could be extended to sub and gsub as well which gsubfn in the
gusbfn package already does:
library(gsubfn)
gsubfn("^..", toupper, c("abc", "xyz"))
## [1] "ABc" "XYz"
On Fri, Mar 3, 2023 at 7:22?PM Pavel Krivitsky <p.krivitsky at unsw.edu.au> wrote:
>
> Dear All,
>
> Currently, list= in base::replace(x, list, value)
2006 Aug 10
2
day, month, year functions
Hi list,
I'm trying to turn a date into something productive. (Not what you may be thinking....)
I want three functions so I could take a "date" object and get the day of week, month, and year from it.
xx <- as.Date("2006-01-05")
month(xx) equal 1
day(xx) equal 5
year(xx) equal 2006
I'm aware of the weekdays() and months() functions in the base package. But
2019 Feb 28
2
Exit status of Rscript
Current R release (3.5.2) and devel return a 0 exit status on error,
while prior versions returned a non-zero exit status. On Linux and
MacOs, the following line returns TRUE for R-3.5.2 and R-devel, and
FALSE for R-3.5.1 and R-3.5.0:
system2("Rscript", c("-e", shQuote("stop('foo')"))) == 0
I didn't find this in the NEWS, so I believe this is a bug.