Displaying 20 results from an estimated 5000 matches similar to: "how to control which version of a package library() installs?"
2007 Feb 28
1
Removing directory?
Hi,
I'm trying to remove/delete a directory usingR. I've tried the
following with no success:
% Rterm --vanilla
> getwd()
[1] "C:/Documents and Settings/hb/braju.com.R/aroma.affymetrix/test"
> dir.create("foo")
> file.info("foo")
size isdir mode mtime ctime atime
foo 0 TRUE 777 2007-02-28 14:52:10
2007 Apr 07
1
R CMD install on R 2.5.0 alpha
Hi,
I've just downloaded the latest R v2.5.0 alpha (2007-04-04 r41043) for
WinXP. When I try to
install a package R tries to install it to a no-name (empty name)
directory (causing error downstream):
RCMD INSTALL R.oo
installing to ''
FYI: Package install perfectly on R v2.4.1 patched, and did so also on
earlier R v2.5.0 devel/alpha(?) versions.
Current directory is:
C:\tmp
with
2010 Jul 08
2
strsplit("dia ma", "\\b") splits characterwise
\b is word boundary.
But, unexpectedly, strsplit("dia ma", "\\b") splits character by character.
> strsplit("dia ma", "\\b")
[[1]]
[1] "d" "i" "a" " " "m" "a"
> strsplit("dia ma", "\\b", perl=TRUE)
[[1]]
[1] "d" "i" "a" " "
2008 Jul 19
1
Clash between 'Cairo' and 'EBImage' packages on Windows
Hi,
on Windows XP Pro with R version 2.7.1 Patched (2008-06-27 r46012) the
'Cairo' and the 'EBImage' packages does not play well together.
Loading EBImage before Cairo cause the following to happen:
# Rterm --vanilla
> library(EBImage);
> library(Cairo)
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared library
2008 Jul 25
1
serialize() to via temporary file is heaps faster than doing it directly (on Windows)
Hi,
FYI, I just notice that on Windows (but not Linux) it is orders of
magnitude (below it's 50x) faster to serialize() and object to a
temporary file and then read it back, than to serialize to an object
directly. This has for instance impact on how fast digest::digest()
can provide a checksum.
Example:
x <- 1:1e7;
t1 <- system.time(raw1 <- serialize(x, connection=NULL));
2008 Nov 26
1
file.access() on network (mounted) drive on Windows Vista?
Hi,
I have a writable and readable file on a small network file system
(Cisco NSLU2 Unslung; non-NTFS) that I access via a mounted drive on
Windows Vista. My problem could be due to a "funny" file
system/server, but here it goes:
> pathname <- "Q:/foo.txt"
> cat(file=pathname, "Hello world!\n")
> readLines(pathname)
[1] "Hello world!"
>
2000 Aug 04
2
running non-base functions
Having loaded R for windows, I cannot run fnctions that aren't in the
base folder.
Typing searchpaths() tells me that only the base folder is in the search
path. How can the path be modified to include other folders?
Thanks,
Ely
rabin at brandeis.edu
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read
2010 Jan 12
0
Wishlist: Function 'difftime' to honor 'tzone' attribute (PR#14182)
Full_Name: Suharto Anggono
Version: 2.8.1
OS: Windows
Submission from: (NULL) (125.165.84.118)
PR#14076 inspired me to write this.
> t1 <- as.POSIXct("1970-01-01 00:00:00", tz="GMT")
> t2 <- as.POSIXlt("1970-01-01 00:00:00", tz="GMT")
> t1 - t2
Time difference of 7 hours
Above, t1 and t2 represent the same time in the same specified
2007 Aug 28
1
R CMD check: Error in function (env) : could not find function "finalize"
Hi,
does someone else get this error message:
Error in function (env) : could not find function "finalize"?
I get an error when running examples in R CMD check (v2.6.0; session
info below):
> ### * invertMap
>
> flush(stderr()); flush(stdout())
> ### Name: invertMap
> ### Title: Inverts a read or a write map
> ### Aliases: invertMap
> ### Keywords: file IO
2006 Dec 22
5
substitute creates an object which prints incorrectly (PR#9427)
The function "substitute" seems to fail to make a genuine
substitution, although the printed verision seems fine. Here is an
example.
> m <- substitute(Y <- function(x) FUN(x+1),
+ list(Y = as.name("y"), FUN = as.name("sin")))
> m
y <- function(x) sin(x + 1)
> eval(m)
> y
function(x) FUN(x+1)
However the story doesn't end there. The
2008 Sep 09
2
match problem by rownames
Hi all,
While dat['a1',] and dat['a10',] produce the same results in the
following example, I'd like dat['a1',] to return NAs.
dat <- data.frame(x1 = paste(letters[1:5],10, sep=''), x2=rnorm(5))
rownames(dat) <- dat$x1
dat['a1',]
dat['a10',]
> sessionInfo()
R version 2.7.2 (2008-08-25)
i386-pc-mingw32
locale:
2009 Oct 29
0
In the result of applying 'bquote' to function definition with 2 or more arguments, first function argument disappears (PR#14031)
Full_Name: Suharto Anggono
Version: 2.8.1
OS: Windows
Submission from: (NULL) (125.165.81.124)
Sorry for repost. There is already PR#9602, but the problem is still there.
There is also a post "Re: [R] using bquote to construct function" in R-help
2008-10-02.
This illustrates the problem.
C:\Program Files\R\R-2.8.1\bin>R --vanilla
R version 2.8.1 (2008-12-22)
Copyright (C) 2008
2012 Sep 11
1
CRAN, install packages problem on networked PC
Dear List,
I have a problem connecting to a CRAN mirror through a networked computer running Vista Enterprise on a Dell PC. I added
http_proxy=http://gannet/ http_proxy_user=ask
to the Target in the R shortcut, completed the username and password in the Proxy Authentication window, but get the following warning:
Warning message:
In open.connection(con, "r") : unable to resolve
2007 Jan 24
1
writing R shell scripts?
Hi All,
Another newbie question. I want to write an R script that takes
argument from command line and runs and produces output to stdin.
For example if there is file foo.R with following in it.
args = commandArgs()
print(args)
then, when I run it like
$ R foo.R hello
it should print 'hello' on the terminal.
I searched the mainling list and found a very old post that said said
that
2007 Nov 28
2
help("R_LIBS") brings up the wrong help file (PR#10475)
Doing
help("R_LIBS")
brings up a help file (the same one as help(library)),
but the help file doesn't mention R_LIBS.
It does have a link to .libPaths, which does document R_LIBS.
The quickest fix would be for help("R_LIBS") to bring up the .libPaths
help file.
--please do not edit the information below--
Version:
platform = i386-pc-mingw32
arch = i386
os = mingw32
2007 Jan 23
6
can't plot a line
Consider the following:
plot(0, 0, xlim=c(-10, 10), ylim=c(-50, 50))
lines(c(0,0), (2*c(-pi, pi))^2)
I see no line in this plot.
R version 2.4.1 (2006-12-18)
i386-pc-mingw32
locale:
LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
States.1252;LC_MONETARY=English_United
States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252
attached base packages:
[1]
2004 Aug 04
1
installing package with version number using namespaces & dynamic library
Hi,
I wonder whether a package with namespace & dynamic library can be installed
with the version number attached, ie. with the argument --with-package-versions.
Is this currently possible?
Using R 1.9.1 on Debian 3.0 I encounter a problem when trying to load a package
installed with
R91 CMD INSTALL --with-package-versions -l /mnt/local/R/R-1.9.x-libs-EpiR RIO
in R started with
R91
2009 Jun 10
1
searchpaths
May I use "searchpaths()" with arguments partially matching file names that are found in different directories ?
My question is whether this is th R function equivalent of Linux "find" or Windows "search".
Both O.S. calls are given a starting point so that they search all diectories from then downwards looking for files whose
names match the searching criteria.
2007 Jan 19
3
Problem with loading tkrplot
I asked the maintainer and he indicated that it might be a dll problem. Has
anyone see this problem? I had installed the latest copy of tkrplot. I was
trying to use teachingDemos when I first got the error.
On 1/18/07, Luke Tierney <luke@stat.uiowa.edu> wrote:
> Looks like tcl can't find the dll or something along those lines. As
> this is windows you'll have to ask
2010 Jan 26
1
update.packages on MS Windows with //server/share paths
Hi,
> update.packages(ask='graphics')
gives me multiple warning (one per updated package?) similar to ...
Warning: unable to move temporary installation
'\\Server02\stats\R\library\2.10\file3de56e0d\locfit' to
'\\Server02\stats\R\library\2.10\locfit'
The final, updated, folders do not end up where they should be. I can move
them 'by hand', but it is an