Displaying 20 results from an estimated 200 matches similar to: "[patch] Add support for editor function in edit.default"
2012 Mar 08
1
Save/Load function()-result to file in a loop
Hi,
I am looking for a way to save the result of a function, e.g the lm()-function to a file and reload it afterwards again. I'd like to do that in order to minimize the used memory when running the function in a loop. The actual function I want to store is the evaluate() from the dismo package.
I tried it with save() and load() but I am not sure if that is the way I should do it as I
2012 Jul 18
1
Skip file
What i have is a for loop to name files. I want it to skip over the file if it doesn't exist. Is there a way to do that?
s=seq(from = chron("03/15/2012"), to = chron("06/15/2012"))
day=format(as.Date(s), "%Y%m%d")
for (k in 1:length(day)){
B1=read.csv(paste("S:/file_", day[k], ".csv", sep=""))
Date=strptime(B1[,1],
2013 Nov 21
1
how can I import a number of datsets in a folder in my working directory to a list in R
Hi,
Suppose, if I create 15 files in my working directory.
set.seed(48)
lapply(1:15,function(i) {m1 <- matrix(sample(1:20,1686*2,replace=TRUE),nrow=1686,ncol=2); write.table(m1,paste0("file_",i,".txt"),row.names=FALSE,quote=FALSE)})
?D <-dir()
D1 <- D[order(as.numeric(gsub("\\D+","",D)))]
D1
?res <- t(sapply(D1,function(x) {x1<-
2020 Jan 04
1
[patch] add sanity checks to quantile()
On 04/01/2020 4:35 p.m., Scott Kostyshak wrote:
> On Fri, May 31, 2019 at 01:28:55AM -0400, Scott Kostyshak wrote:
>> The attached patch adds some sanity checks to the "type" argument of
...
> Bump. For this type of patch proposal, is it better to use the
> bug tracker?
For almost any patch proposal it is. Certainly if you don't get action
(or at least discussion)
2009 Jul 23
2
alternative to rbind within a loop
Hi,
I often have to do this:
select a folder (directory) containing a few hundred data files in csv
format (up to 1000 files, in fact)
open each file, transform some character variables in date-tiime format
make into a dataframe (involves getting rid of a few variables I don't
need
concatenate to the master dataframe that will eventually contain the
data from all the files in the
2019 May 31
2
[patch] add sanity checks to quantile()
The attached patch adds some sanity checks to the "type" argument of
quantile(). Output from the following commands show the change of
behavior with the current patch:
vec <- 1:10
quantile(vec, type = c(1, 2))
quantile(vec, type = 10)
quantile(vec, type = "aaa")
quantile(vec, type = NA_real_)
quantile(vec, type = 4.3)
quantile(vec, type = -1)
Current behavior
2014 Jul 09
1
[patch] Rscript off-by-one error in output
Rscript eats up the last argument when reporting the command it runs:
$ Rscript --verbose "/tmp/test.R" one two three
running
'/usr/local/lib/R-devel/lib/R/bin/R --slave --no-restore
--file=/tmp/test.R --args one two'
With the patch below, I get the following:
$ Rscript --verbose "/tmp/test.R" one two three
running
'/usr/local/lib/R-devel/lib/R/bin/R --slave
2013 Aug 03
1
tk + browser() can leave R unresponsive
I don't know if this is a bug. I can reproduce the following on Ubuntu
12.04.2 and 13.04 64-bit with R version 3.0.1 and with r63479. There
is no difference if R is patched with the fix for PR#15407 or not,
although without the fix there are more ways to trigger this.
I can reproduce with the following:
1. Open R in gnome-terminal or xterm
2. Run 'library(tcltk)'
3. Run
2007 Nov 15
1
program I used to test xattrs
Hello,
This is the little basic program I used to test xattrs. First thing I did was
something like this
cd /mnt/btrfs-test
for i in $(seq 0 100000); do touch file_$i; done
and then run
time ./xattr-test /mnt/btrfs 0
time ./xattr-test /mnt/btrfs 1
time ./xattr-test /mnt/btrfs 2
the 0 test creates 100 xattrs for every file in the directory. the 1 test just
does a listxattr for every file in
2013 Jul 19
1
Posting Guide: changed link and other comment
I have two comments regarding the Posting Guide:
(1) The link in the following sentence did not work for me:
Take care when you quote other people's comments to respect their
rights, e.g., as summarized here[a].
[a] http://www.jiscmail.ac.uk/help/policy/copyright.htm
Has it been changed to the following?
http://www.jiscmail.ac.uk/policyandsecurity/copyrightissues.html
(2) Regarding
2014 Apr 14
1
duplication regression (?)
Below is an example of output that changed as a result of r64970. I
did not see any NEWS item suggesting this change is expected.
Note that the example is contrived and I don't have a use case for it.
I stumbled across it when playing with recent changes in R relating to
duplication. Does the example use undefined syntax?
-----
fn1 <- function(mylist) {
fn1a <- function()
2014 Oct 12
1
Turn warnings or notes into errors on CMD check ?
Hi,
I am using a local patch to have CMD check exit with error if there is
a note or warning. Am I missing an already existing way to do this?
If not, Is there any interest in having an option or environment
variable for this upstream? I would be interested in making a patch.
If so, option or environment variable? Any suggestions for the name?
Should this be two options or one option with
2020 Jun 12
1
Marking a ticket as a (potential) regression in bug tracker?
Is there a way to mark a ticket as a potential regression in the bug
tracker? I think the following issue is a regression:
https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17684
I've just tested (2020-06-12 r78687) and what I believe to be a
regression is still there. I don't think the bug has bitten many people,
so I don't think it is critical, but often it is helpful to mark
2020 Jan 04
0
[patch] add sanity checks to quantile()
On Fri, May 31, 2019 at 01:28:55AM -0400, Scott Kostyshak wrote:
> The attached patch adds some sanity checks to the "type" argument of
> quantile(). Output from the following commands show the change of
> behavior with the current patch:
>
> vec <- 1:10
> quantile(vec, type = c(1, 2))
> quantile(vec, type = 10)
> quantile(vec, type = "aaa")
2018 May 01
2
source(echo = TRUE) with a iso-8859-1 encoded file gives an error
I have very little knowledge about file encodings and would like to
learn more.
I've read the following pages to learn more:
2018 May 04
0
[Rd] source(echo = TRUE) with a iso-8859-1 encoded file gives an error
On Fri, May 4, 2018 at 4:47 PM, Scott Kostyshak <skostyshak at ufl.edu> wrote:
> I have very little knowledge about file encodings and would like to
> learn more.
>
> I've read the following pages to learn more:
>
> http://stat.ethz.ch/R-manual/R-devel/library/base/html/Encoding.html
>
2009 Apr 09
8
ZIL SSD performance testing... -IOzone works great, others not so great
Hi folks,
I would appreciate it if someone can help me understand some weird
results I''m seeing with trying to do performance testing with an SSD
offloaded ZIL.
I''m attempting to improve my infrastructure''s burstable write capacity
(ZFS based WebDav servers), and naturally I''m looking at implementing
SSD based ZIL devices.
I have a test machine with the
2018 May 04
2
[Rd] source(echo = TRUE) with a iso-8859-1 encoded file gives an error
I have very little knowledge about file encodings and would like to
learn more.
I've read the following pages to learn more:
http://stat.ethz.ch/R-manual/R-devel/library/base/html/Encoding.html
https://stackoverflow.com/questions/4806823/how-to-detect-the-right-encoding-for-read-csv
https://developer.r-project.org/Encodings_and_R.html
The last one, in particular, has been very
2012 Jul 11
0
Announce: Puppet 2.7.18 Available [ Security Release ]
Puppet 2.7.18 is a security release in the 2.7.x branch.
The security changes in 2.7.18 address CVEs 2012-3864, 2012-3865, 2012-3866
and 2012-3867.
All users of Puppet 2.7.x are encouraged to upgrade when possible to Puppet
2.7.18.
More information available at http://puppetlabs.com/security
or visit http://puppetlabs.com/security/cve/cve-2012-3864,
2013 Sep 09
1
tools::md5sum(directory) behavior different on Windows vs. Unix
tools::md5sum gives a warning if it receives a directory as an
argument on Unix but not on Windows.
>From what I understand, this happens because in Windows a directory is
not treated as a file so fopen returns NULL. Then, NA is returned
without a warning. On Unix, a directory is treated as a file so fopen
does not return NULL so md5 is run and fails, leading to a warning.
This is a good