search for: dcf

Displaying 20 results from an estimated 297 matches for "dcf".

Did you mean: dc
2015 Sep 22
2
segfault with readDCF on R 3.1.2 on AIX 6.1 when using install.packages
On Mon, Sep 21, 2015 at 2:48 PM, Duncan Murdoch <murdoch.duncan at gmail.com> wrote: > On 21/09/2015 4:50 PM, Herv? Pag?s wrote: >> Hi, >> >> Note that one significant change to read.dcf() that happened since R >> 3.0.2 is the addition of support for arbitrary long lines (commit >> 63281), which never worked: >> >> dcf <- paste(c("aa: ", rep(letters, length.out=10000)), collapse="") >> writeLines(dcf, "test.dcf")...
2007 Jul 18
1
(PR#9796) write.dcf/read.dcf cycle converts missing entry
...'ve fixes for those, and will commit to R-devel shortly. On Tue, 17 Jul 2007, bill at insightful.com wrote: > Full_Name: Bill Dunlap > Version: 2.5.0 > OS: Red Hat Enterprise Linux WS release 3 (Taroon Update 6) > Submission from: (NULL) (24.17.60.30) > > > If you read a dcf file with read.dcf(file,fields=c("Field",...)) > and the file does not contain the desired field "Field", > read.dcf puts a character NA for that entry in its output > matrix. If you then call write.dcf, passing it the output > of read.dcf(), it will write the entry...
2015 Sep 21
5
segfault with readDCF on R 3.1.2 on AIX 6.1 when using install.packages
Hi, Note that one significant change to read.dcf() that happened since R 3.0.2 is the addition of support for arbitrary long lines (commit 63281), which never worked: dcf <- paste(c("aa: ", rep(letters, length.out=10000)), collapse="") writeLines(dcf, "test.dcf") nchar(read.dcf("test.dcf"))...
2007 Jul 17
0
write.dcf/read.dcf cycle converts missing entry to "NA" (PR#9796)
Full_Name: Bill Dunlap Version: 2.5.0 OS: Red Hat Enterprise Linux WS release 3 (Taroon Update 6) Submission from: (NULL) (24.17.60.30) If you read a dcf file with read.dcf(file,fields=c("Field",...)) and the file does not contain the desired field "Field", read.dcf puts a character NA for that entry in its output matrix. If you then call write.dcf, passing it the output of read.dcf(), it will write the entry "Field: NA&quo...
2007 Sep 26
1
Lack of final newline in write.dcf changes append usage
The change in r42731 eliminating the final blank line when writing DCF files changes the way 'append' can be used in 'write.dcf' and I was wondering if this is intentional. Basically, I want to write a data frame to DCF format one row at a time, so I make use of repeated calls to 'write.dcf(append = TRUE)'. However, in R 2.6.0RC the resulting...
2008 Dec 14
2
Help required to install package from a website
...install a package 'outside' of R. My operating system is Windows XP. Here's one attempt that does not work: where="http://staff.pubhealth.ku.dk/~bxc/MethComp/Archive/?C=M;O=D" install.packages("MethComp_0.4.1.tar.gz",contriburl=where) Warning messages: 1: In read.dcf(file = tmpf) ... : Line starting '<!DOCTYPE HTML PUBLI ...' is malformed! 2: In read.dcf(file = tmpf) ... : Line starting '<html> ...' is malformed! 3: In read.dcf(file = tmpf) ... : Line starting ' <head> ...' is malformed! 4: In read.dcf(file = tmpf) ... :...
2015 Sep 22
0
segfault with readDCF on R 3.1.2 on AIX 6.1 when using install.packages
On 21/09/2015 10:20 PM, Vinh Nguyen wrote: > On Mon, Sep 21, 2015 at 2:48 PM, Duncan Murdoch > <murdoch.duncan at gmail.com> wrote: >> On 21/09/2015 4:50 PM, Herv? Pag?s wrote: >>> Hi, >>> >>> Note that one significant change to read.dcf() that happened since R >>> 3.0.2 is the addition of support for arbitrary long lines (commit >>> 63281), which never worked: >>> >>> dcf <- paste(c("aa: ", rep(letters, length.out=10000)), collapse="") >>> writeLines(dcf, &q...
2015 Sep 21
0
segfault with readDCF on R 3.1.2 on AIX 6.1 when using install.packages
On 21/09/2015 4:50 PM, Herv? Pag?s wrote: > Hi, > > Note that one significant change to read.dcf() that happened since R > 3.0.2 is the addition of support for arbitrary long lines (commit > 63281), which never worked: > > dcf <- paste(c("aa: ", rep(letters, length.out=10000)), collapse="") > writeLines(dcf, "test.dcf") > nchar(read....
2008 Sep 12
1
write.dcf does not quote as Debian would like it to (PR#12816)
...The Debian Policy Manual says concerning lines in a Description field: * Those containing a space, a full stop and some more characters. These are for future expansion. Do not use them. (section 5.6.13, http://www.debian.org/doc/debian-policy/ch-controlfields.html) But for example: > write.dcf(list(Description = 'there was a fat goat .haha'),indent=1,width=10) Description: there was a fat goat .haha A simple quoting scheme is to add a space in front of such full stops: --- src/library/base/R/dcf.R.orig 2008-09-12 20:42:37.000000000 +0100 +++ src/library/base/R/dcf.R...
2014 May 14
1
Bug in read.dcf(all = TRUE)?
Hi, read.dcf() can modify the locale variable LC_CTYPE, and here is a minimal example: > Sys.getlocale('LC_CTYPE') [1] "en_US.UTF-8" > read.dcf(textConnection('a: b'), all = TRUE) a 1 b > Sys.getlocale('LC_CTYPE') [1] "C" After diagnosing the problem, it...
2015 Sep 21
2
segfault with readDCF on R 3.1.2 on AIX 6.1 when using install.packages
Here's an update: I checked the ChangeLog for R, and it seems like readDCF was changed in 3.0.2. I went on a whim and copied src/main/dcf.c from R 2.15.3 over to 3.2.2, and R compiled fine and install.packages now work for me. This is probably not ideal, but it at least makes R usable on AIX for me. Would definitely like to help figure out what's wrong with the new...
2016 Jun 14
5
new function to tools/utils package: dependencies based on DESCRIPTION file
...stalled to library). This would be valuable in automation of CI setup in a more meta-data driven way. The simple function below, I know it is short and simple, but having it to be defined in each CI workflow is a pain, it could be already available in tools or utils namespace. package.dependencies.dcf <- function(file = "DESCRIPTION", which = c("Depends","Imports","LinkingTo")) { stopifnot(file.exists(file), is.character(which)) which_all <- c("Depends", "Imports", "LinkingTo", "Suggests", "Enhance...
2010 Mar 30
1
update.packages() and install.packages() does not work more because of "Error in read.dcf"
...mo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > update.packages(checkBuilt=T) --- Please select a CRAN mirror for use in this session --- Loading Tcl/Tk interface ... done Error in read.dcf(file = tmpf) : Line starting 'Li ...' is malformed! > update.packages() Error in read.dcf(file = tmpf) : Line starting 'Li ...' is malformed! > install.packages("e1071") Error in read.dcf(file = tmpf) : Line starting 'Li ...' is malformed! All systems are g...
2016 Nov 14
0
Read.dcf with no newline ending: gzfile drops last line
I don't know if this is a bug per se, but an undesired behavior in read.dcf. read.dcf takes a file argument and passes it to gzfile if it's a character: if (is.character(file)) { file <- gzfile(file) on.exit(close(file)) } This gzfile connection is passed to readLines (line #39): lines <- readLines(file) If no newline is at the end of th...
2022 Oct 13
1
tools:: extracting pkg dependencies from DCF
...ols package is better place, for such a fundamental functionality, than community packages. tools pkg seems perfect fit (having already great function write_PACKAGES). Functionality I am asking for is already in R svn repository since 2016, in a branch tools4pkgs. Function is called 'packages.dcf'. Another one 'repos.dcf' would be a good functional complementary to it. Those two simple helper functions really makes it easier for organizations to glue together usage of their own R packages repos and CRAN repo in a smooth way. That could possibly help to offload CRAN from new sub...
2016 Jun 16
3
new function to tools/utils package: dependencies based on DESCRIPTION file
...setup in a more meta-data driven way. >>> The simple function below, I know it is short and simple, but having >>> it to be defined in each CI workflow is a pain, it could be already >>> available in tools or utils namespace. >>> >>> package.dependencies.dcf <- function(file = "DESCRIPTION", which = >>> c("Depends","Imports","LinkingTo")) { >>> stopifnot(file.exists(file), is.character(which)) >>> which_all <- c("Depends", "Imports", "LinkingTo&quo...
2019 Aug 02
0
bug: write.dcf converts hyphen in field name to period
write.dcf(list('my-field' = 1L), tmp <- tempfile()) cat(readLines(tmp)) # my.field: 1 However there's nothing wrong with hyphenated fields per the Debian standard: https://www.debian.org/doc/debian-policy/ch-controlfields.html And in fact we see them using hyphenated fields there, and inde...
2005 Nov 27
1
segfault on write.dcf with gzfile connection
I'm seeing a segfault on x86_64 Linux with the following code: desc = read.dcf("BAD") con = gzfile("test.gz", "wt") write.dcf(desc, file=con) close(con) where BAD has a long field (see below for example). The crash happens inside dummy_vfprintf. I think the issue is that the va_list ap is modified by the first vsnprintf call (c...
2022 Oct 29
1
tools:: extracting pkg dependencies from DCF
...problem, as instructed by you (+stopifnot to suppress print). Rscript -e 'stopifnot(file.copy("DESCRIPTION", file.path(tdir<-tempdir(), "PACKAGES"))); db<-available.packages(paste0("file://", tdir)); install.packages(setdiff(tools::package_dependencies(read.dcf("DESCRIPTION", fields="Package")[[1L]], db, which="most")[[1L]], installed.packages(priority="high")[,"Package"]))' 3 liner, 310 chars long command, far from ideal, but does work. Best, Jan On Fri, Oct 28, 2022 at 10:42 PM Gabriel Becker &lt...
2003 Nov 29
3
performance gap between R 1.7.1 and 1.8.0
...46.14 "hclass" 1.83 17.10 5.85 54.64 "inherits" R 1.8.1: % self % total self seconds total seconds name 6.24 224.26 11.69 420.32 "paste" 5.93 213.04 13.21 474.76 "read.dcf" 4.37 157.24 5.17 185.92 "names" 4.18 150.42 5.53 198.66 "exists" 3.71 133.52 14.66 527.00 "lapply" 3.15 113.16 4.43 159.32 "names<-" 2.98 107.26 2.98 107.26 ".Fo...