Displaying 20 results from an estimated 2000 matches similar to: "Small modification of zip.file.extract in utils?"
2012 Mar 08
2
Cannot change location of tempdir()
Hi,
One of the functions I use needs to write to a temporary file, in the
directory given by tempdir(). I want to change this from the standard
one, as the file is too large for the drive. However, tempfile() doesnt
seem to respect the environment variables when I change them with
Sys.setenv(). In a fresh R-session:
> Sys.getenv("TMP")
[1]
2002 Feb 04
1
read zipped files
I received several answer to my querry re reading zipped files,
R.Gentleman, Liaw Andy, BD Ripley,J Holtman, A.Matt, and others,
sorry
if I missed your names.
a- use pipe to run external unzip to a file and read from there
b- use gzfile() to open directly a gzipped file
c- use zip.file.extract()
solution b works like a charm, unfortunately it open gzipped files
and
not zipped files, would it be
2006 Aug 17
1
unlink disables help?
I was hoping that someone could try to reproduce an error that I am
getting. The R Site Search keeps timing out on me, so apologies of this
has already come up.
I'm using
> R.version
_
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
2010 Mar 13
3
How can I access a ZIP file that's over 2Gb?
I have a zip file. It is over 2Gb in size:
-rw-r--r-- 1 sweh sweh 2383956582 Mar 13 13:44 test.zip
The standard "unzip" program barfs:
% unzip -l test.zip
Archive: test.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment
2005 Oct 14
3
zip package
Dear all
I can not understand how to install the package lpsolve_1.1.9.zip
I have read the FAQ and the help pages carefully, but it still not
clear for me.
I have tried the following (and obtained the respective error
messages):
>install.packages("c:/ProgramFiles/R/rw2011/library/lpSolve_1.1.9",destdir="
c:/ProgramFiles/R/rw2011/library/lpSolve")
Mensagem de aviso:
2016 Dec 07
3
Strange behavior when using progress bar (Fwd: Re: [R] The code itself disappears after starting to execute the for loop)
>>>>> Jon Skoien <jon.skoien at jrc.ec.europa.eu>
>>>>> on Wed, 7 Dec 2016 11:04:04 +0100 writes:
> I would like to ask once more if this is reproducible also for others?
> If yes, should I submit it as a bug-report?
> Best,
> Jon
Please Windows users .. this is possibly only for you!
Note that I do *not* see problems on
2004 Oct 22
2
install.packages question / suggestion
Hello,
when trying to write an R-file, which automatically installs and updates a
given list of packages, I had two problems with install.packages()
1) install.packages("<package>") will install <package>, no matter if
<package> has already been installed.
2) the readline() at the end of install.packages, which asks the user, if
the downloaded files should be
2011 Sep 15
2
Dragonfly and Zip uploads
I''m poring through the Dragonfly source code right now, trying to get a handle on how to apply the following technique there:
Client uploads a Zip archive containing N images, PDF files, text files, etc. When that file arrives at the server, but before it is stored as an attachment to the current object, the Zip is burst open, contents are iterated over, and each contained file is saved
2007 Mar 30
1
zip.file.extract on Windows
Hello R-help!
I just wanted to share a tip might help others of us stuck on R.
The documentation for zip.file.extract is rather scant, and a few
examples would.
When using zip.file.extract, the first argument should be the full (or
relative) path and the second the name of the zip file, it seems.
While this is counterintuitive to me, that it should get the part from
the first argument,
2014 Jul 14
1
Error in compactPDF/find_gs_cmd or documentation?
I am using tools::compactPDF for reducing the size of some pdf-files
with GhostScript. I had some trouble in the beginning as the
documentation seems not to match the usage of the function. For
GhostScript, one has to set the argument gs_cmd, which has the following
description:
gs_cmd - Character string giving the path to the GhostScript executable,
if that is to be used. On Windows this is
2006 Jul 16
1
install.packages for local zip files
O/S: Linux
R version : 2.2.1
The R server doesn't have http internet access. And the sys admins will
not install the R libraries that I requested. So I have downloaded the
packages that I want to intall and have moved them into my home
directory on the server. These are a series of *.tar.gz files. I want
to install the R libraries in my home directory, but I can't get it to
work.
2016 Nov 28
2
Strange behavior when using progress bar (Fwd: Re: [R] The code itself disappears after starting to execute the for loop)
I first answered to the email below in r-help, but as I did not see any
response, and it looks like a bug/unwanted behavior, I am also posting
here. I have observed this in RGui, whereas it seems not to happen in
RStudio.
Similar to OP, I sometimes have a problem with functions using the
progress bar. Frequently, the console is cleared after x iterations when
the progress bar is called in a
2018 Feb 23
2
Problem with R_registerRoutines
Thanks a lot for your answer Jeroen!
I should have mentioned that I had actually only checked with the win-builder, as I did not have R-devel installed on my computer.
But based on your answer I installed R-devel locally on a Linux-server (Redhat), and the package could be checked without the NOTE. So you might be right that this is a windows issue. However, another package that I am maintaining
2012 Jul 24
3
package memisc: recode examples
Dear people,
Yesterday I looked at the recode command in the memisc package and ran the
following example stated in the manual:
x <- as.item(sample(1:6,20,replace=TRUE),
labels=c( a=1,
b=2,
c=3,
d=4,
e=5,
f=6))
print(x)
f <- as.factor(x)
f
recode(f,
2008 Aug 25
1
Output to Latex using Memisc almost works
Hello,
I'm using memisc to output regression results to tables and latex. My
problem is that the output that Latex needs must be in between $ $ so that
it is read as formula but memisc does not output the result between $ $.
For example, latex needs: $0.05^{***}$ and memisc outputs 0.05^{***} in an
entry.
I am new to Latex and I imagine it could also be a latex 'problem' and not
2004 Oct 05
1
Bug in optim - way to solve problem?
Hi,
I want to automatically fit variograms to a large number of different
sample data sets, and call the funtion "likfit" (in package geoR) from
within a for-loop. "likfit" does again call "optim". After ssuccessfully
fitting variograms to some of the data sets, the procedure crashes and I
get the error message:
Error in optim(par = ini, fn = negloglik.GRF,
2013 Apr 04
5
help with kriging interpolation
All,
I am new to using R and know some basics. I wish to use kriging in R to
do the following:
given data Y =f(X1,X2,X3,.....,Xn) --1000+ irregular measured data set.
I would like to be able to get a single value y given sinle input set
(x1,x2,x3,...xn)
A google search on this takes me lierally to the same example on involving
analysis with soil sampling and I cannot figure out how to
2023 Mar 21
2
[libnbd PATCH v4 0/2] lib/utils: introduce async-signal-safe execvpe()
On Tue, Mar 21, 2023 at 07:04:59AM +0100, Laszlo Ersek wrote:
> On 3/20/23 20:41, Eric Blake wrote:
> > On Sun, Mar 19, 2023 at 10:41:37AM +0100, Laszlo Ersek wrote:
> >> This is version 4 of the following sub-series:
> >>
> >> [libnbd PATCH v3 09/29] lib/utils: introduce async-signal-safe execvpe()
> >> [libnbd PATCH v3 10/29] lib/utils: add unit tests
2011 Feb 13
2
Recoding using the memisc package
Dear All,
I am trying to recode a variable using the functions provided by
"memisc" package. Actually I am following the examples on page 9-10 of
the vignette:
--------------------------------------------------------------------------
d.fig <- within(d.fig,{
sev <- recode(sev,
1 -> 0.9,
2 -> 1.0,
3 -> 1.1,
4 ->
2008 Mar 13
2
recover masked functions?
Hi,
I have loaded the packages car, memisc, Hmisc and all
of these implement the function recode. The order in
which the packages are loaded depends on the order I
execute my scripts and thus is not always the same and
the syntax of the recode function changes with the
package.
Is there any way to call specificly the memisc recode
function?
Or maybe it's better to detach all packages first