Displaying 20 results from an estimated 5000 matches similar to: "zip() containing windows specific code?"
2010 Apr 15
1
Changing locale?
Hi
I need for a specific application to change the locale of R 2.9.2 in
Ubuntu 9.04. Trying the example in ?Sys.setlocale:
Sys.setlocale("LC_TIME", "de_DE.utf8")
[1] ""
Warning message:
In Sys.setlocale("LC_TIME", "de_DE.utf8") :
la requ?te OS pour sp?cifier la localisation ? "de_DE.utf8" n'a pas pu
?tre honor?e
I tried the code
2010 May 11
1
R 2.11 on Ubuntu 9.10 does not complain abt unexisting objects
Hi
I recently updated to R 2.11 and see a strange problem. When run into
the console, R does not warn when calling an unexisting object, see
below. I don't know if this is related, but I am not able to run the R
CMD BATCH properly... Did someone see a similar problem? Which
information can I provide more on this problem?
Thanks for help!
Matthieu
$R
R version 2.11.0 (2010-04-22)
2012 Oct 24
2
R CMD BATCH: set locale?
Hi
I would like to change the locale when using R CMD BATCH. Usually, if I
want to run it in english, for R in console/GUIs, I edit the .Rprofile
file, adding:
Sys.setlocale("LC_ALL","en_US.UTF8")
Sys.setlocale("LC_MESSAGES","en_US.UTF8")
But while this works for interactive R, it does not for R CMD BATCH. The
problem is that running tests for a package,
2019 Dec 13
1
tempdir() containing spaces breaks installing source packages
Hello everyone!
Temp paths are used in system2() calls without shQuote() because
they are assumed not to contain spaces. On Windows,
GetShortPathName() is used to try to ensure that.
Unfortunately, sometimes GetShortPathName() silently fails to return a
8.3 file path and gives a full path instead (8.3 file names might be
disabled on newer Windows 10 installations, or there may be another
2011 Jun 05
1
another missing link in febootstrap; failing tests for libguestfs
After the last round of patches to febootstrap, the image-based test in
libguestfs still failed. It turned out that this happens because Debian
started replacing /var/run and /var/lock with symlinks that point to a
tmpfs mounted to /run. The symlinks were copied to the appliance but
/run/lock did not exist, so pvcreate refused to run (script
'images/guest-aux/make-debian-img.sh').
After I
2011 May 24
1
document
Hello evryone,
Thank you for helping me to choose a CRAN MIRROR. When Icome to choose a
mirror an error message comes:
>Message d'avis :
In open.connection(con, "r") :
connexion ? 'cran.r-project.org' impossible sur le port 80.
Again, I managed to download th package ttda.zip but an error message during
the installation comes to me:
>Erreur dans gzfile(file,
2017 Aug 21
3
Control multi-threading in standard matrix product
Dear R Core Team,
I wish to report what can be viewed as a bug or at least a strange
behavior in R-3.4.1. I ask my question here (as recommended on
https://www.r-project.org/bugs.html) since I am not member of the R's
Bugzilla.
When running 'R --vanilla' from the command line, the standard matrix
product is by default based on BLAS and multi-threaded on all cores
available on
2017 Aug 21
2
Control multi-threading in standard matrix product
Hi Tomas,
Thanks for your answer.
Indeed, I checked and my R-3.4.1 installed from the ubuntu repository
use 'libopenblasp-r0.2.18.so' while my R-3.3.2 that I did compiled on my
machine use 'libRblas.so' which explain the difference of behavior.
I will use RhpcBLASctl to avoid issue when combining matrix product and
other multi-threading package.
Maybe this point regarding
2014 Feb 24
3
Error gdata and gplots packages
Hi, I just installed Ubuntu 12.04.4. I installed R by following
instructions from CRAN after modification into my /etc/apt/sources.list file
sudo apt-get update
sudo apt-get install r-base
sudo apt-get install r-base-dev
When I try to load library(gdata) ou library(gplots), I have error
message :
library(gdata)
gdata: read.xls support for 'XLS' (Excel 97-2004) files
2018 Sep 14
2
Bug when calling system/system2 (and request for Bugzilla account)
I hope it's not too specific in my setup...
I've tried with system2 added on the first line, so:
Example.R:
system2('ls', timeout=5)
cat('Start non-interruptable functions\n')
sample_a <- sample(1:1e7)
sample_b <- sample(1:2e7)
matching <- match(sample_a, sample_b)
cat('Finished\n')
Sys.sleep(10)
And in terminal/bash:
R --vanilla
2020 Feb 19
3
dimnames incoherence?
Hi,
I was bitten by a little incoherence in dimnames assignment or may be I
missed some point.
Here is the case. If I assign row names via dimnames(a)[[1]], when
nrow(a)=1 then an error is thrown. But if I do the same when nrow(a) > 1
it's OK. Is one of this case works unexpectedly? Both? Neither?
a=as.matrix(1)
dimnames(a)[[1]]="a" # error: 'dimnames' must be a list
2010 Nov 11
1
Problem with system2(), directing STDERR to a file
According to ?system2, I should be able to direct the output of STDERR to a
file by giving the filename as a character vector to the "stderr" argument.
But here is what happens.
Given a ruby script test.rb (with its executable bit set):
#!/usr/bin/env ruby
STDOUT.puts "stdout"
STDERR.puts "stderr"
And the following R code:
> t <- tempfile()
> res <-
2007 Nov 07
1
strwidth and strheight for rotated text
Dear All,
I would like to plot text with a box around it. I used strwidth and
strheight to compute the size of the box which is plotted with rect:
z <- rnorm(10)
# horizontal text works
plot(rnorm(10))
x1 <- 5
y1 <- 0
label <- "Label"
cha <- paste(" ", label, " ", sep = "")
xh <- strwidth(cha, cex = par("cex"))
yh <-
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
2011 Jan 27
1
possible bug in packageVersion()?
Hi,
I received a bug report from a French user who told me there was
something wrong with the function packageVersion(), but
packageDescription() worked well. Below is the session info; I'm not
sure if other French users can reproduce the error message:
> packageVersion('base')
Erreur : sp?cification de version incorrecte base
> sessionInfo()
R version 2.12.1 (2010-12-16)
2010 Oct 02
1
cleanup_pkg() in tools:::.build_packages() is broken
Hi,
The cleanup_pkg() function defined the big tools:::.build_packages()
function in tools/R/build.R is currently broken. When Makefiles are
used cleanup_pkg() doesn't clean anything because of the way system2()
is called.
For example, the call to Ssystem() on line 304 (Ssystem is a silent
version of system2) is basically trying to do this:
>
2018 Jan 26
2
utils::install.packages with quiet=TRUE fails for source packages on Windows
Hi,
Installing a source package on Windows using utils::install.packages()
with quiet=TRUE fails, while it works with the default quiet = FALSE.
The problem seems to be caused by the fact that when quiet = TRUE,
stdout and stderr are set to FALSE when calling "R CMD INSTALL" with
base::system2() here:
2011 May 14
1
odfWeave 0.7.17 stutters on Debian testing 64-bit amd64 systems.
Dear list,
This is a copy of a mail sent to Max Kuhn, original author and
maintainer of the odfWeave package, which seems not to have received it.
It reports a problem that seems to be very implementation specific
(reproductible on three Debian testing amd64 machine, does *not* happen
on two i686 Debian testing systems, does *not* happen on an Ubuntu 11.06
amd64 machine) and therefore not
2010 Oct 19
1
[R 2.12] install.packages() with no lib argument does not work
Dear R users,
I have just upgraded R from 2.11 to 2.12 on Ubuntu 9.04 (see more informations
at the end) from the cran apt-get repository. One of the new things concerning
the install.packages() function is stated here :
install.packages() and remove.packages() with lib unspecified and multiple
libraries in .libPaths() inform the user of the library location used with
a message
2015 Sep 17
1
names treatment in optim()
Dear both,
I have found that names are not treated in the same way in optim() depending on the optimization method (argument method).
The example below shows the difference between the Brent method and the L-BFGS-B method.
f <- function(x){ y <- x^2;names(y) <-"f(x)";y}
optim(10, f, method="Brent", lower=-1, upper=10)$value
optim(10, f, method="L-BFGS-B",