search for: formatdl

Displaying 18 results from an estimated 18 matches for "formatdl".

2017 Mar 09
2
Error in formatDL(nm, txt, indent = max(nchar(nm, "w")) + 3)
...gt; > > I tried "debug(help)" with the problem mentioned below. It stopped > with a call to "library", from which I generate the following simple > replication of this error: > > >> library(help = 'fda', character.only = TRUE) > Error in formatDL(nm, txt, indent = max(nchar(nm, "w")) + 3) : > incorrect values of 'indent' and 'width' > > > This was using R 3.3.3 inside RStudio on a Mac, as noted below. This > same "library(help='fda', character.only=TRUE)" ran fine using R C...
2017 Mar 09
0
Error in formatDL(nm, txt, indent = max(nchar(nm, "w")) + 3)
It happens in the fda package because some of the headers are longer than typical (e.g., "Repository/R-Forge/DateTimeStamp") and formatDL dies if the indent argument is too large compared to the width argument. It might be nice to change formatDL so it never gave such an error, but did something reasonable when the 'indent' argument was too big. Changing if (indent > width/2) stop("incorrect values of 'indent&...
2017 Mar 08
2
Error in formatDL(nm, txt, indent = max(nchar(nm, "w")) + 3)
Hello: A call to help(..., help_type='text') fails with "package='fda": > install.packages('fda') > help(package='fda', help_type='text') Error in formatDL(nm, txt, indent = max(nchar(nm, "w")) + 3) : incorrect values of 'indent' and 'width' I have this wrapped inside "try" in PackageSum2{sos}, so it doesn't die, but it also doesn't give me the additional information I want from help(..., help_...
2017 Mar 09
0
Error in formatDL(nm, txt, indent = max(nchar(nm, "w")) + 3)
Hello: I tried "debug(help)" with the problem mentioned below. It stopped with a call to "library", from which I generate the following simple replication of this error: > library(help = 'fda', character.only = TRUE) Error in formatDL(nm, txt, indent = max(nchar(nm, "w")) + 3) : incorrect values of 'indent' and 'width' This was using R 3.3.3 inside RStudio on a Mac, as noted below. This same "library(help='fda', character.only=TRUE)" ran fine using R Console 3.2.1 under...
2007 Jul 18
1
(PR#9796) write.dcf/read.dcf cycle converts missing entry
...t;testC" "1.3.1" "NA" "NA" > With the attached write.dcf() it returns TRUE. > > The diff would be > 19,22c19,24 > < eor <- character(nr * nc) > < eor[seq.int(1, nr - 1) * nc] <- "\n" > < writeLines(paste(formatDL(rep.int(colnames(x), nr), c(t(x)), > < style = "list", width = width, indent = indent), eor, > --- >> tx <- t(x) >> not.na <- c(!is.na(tx)) >> eor <- character(sum(not.na)) >> eor[ c(diff(c(col(tx))[not.na]),0)==1 ] <- &...
2023 Jan 31
1
Sys.getenv(): Error in substring(x, m + 1L) : invalid multibyte string at '<ff>' if an environment variable contains \xFF
...I should be more careful and test for (enc == CE_UTF8) || (utf8locale && enc == CE_NATIVE) instead of just utf8locale. * I have verified that Sys.getenv() doesn't crash with UTF-8-invalid strings in the environment with this patch applied, but now print.Dlist does, because formatDL wants to compute the width of the string which has the 'bytes' encoding. If this is a good way to solve the problem, I can work on suggesting a fix for formatDL to avoid the error. -- Best regards, Ivan
2007 Jul 17
0
write.dcf/read.dcf cycle converts missing entry to "NA" (PR#9796)
...; "testA" [3,] "testC" "1.3.1" "NA" "NA" With the attached write.dcf() it returns TRUE. The diff would be 19,22c19,24 < eor <- character(nr * nc) < eor[seq.int(1, nr - 1) * nc] <- "\n" < writeLines(paste(formatDL(rep.int(colnames(x), nr), c(t(x)), < style = "list", width = width, indent = indent), eor, --- > tx <- t(x) > not.na <- c(!is.na(tx)) > eor <- character(sum(not.na)) > eor[ c(diff(c(col(tx))[not.na]),0)==1 ] <- "\n" > wri...
2023 Jan 31
1
Sys.getenv(): Error in substring(x, m + 1L) : invalid multibyte string at '<ff>' if an environment variable contains \xFF
...and test for (enc == CE_UTF8) || (utf8locale && enc == > CE_NATIVE) instead of just utf8locale. > > * I have verified that Sys.getenv() doesn't crash with UTF-8-invalid > strings in the environment with this patch applied, but now > print.Dlist does, because formatDL wants to compute the width of the > string which has the 'bytes' encoding. If this is a good way to > solve the problem, I can work on suggesting a fix for formatDL to > avoid the error. Thanks, indeed, type instability is a big problem of the approach "turn inva...
2023 Jan 31
2
Sys.getenv(): Error in substring(x, m + 1L) : invalid multibyte string at '<ff>' if an environment variable contains \xFF
...8) || (utf8locale && enc == >> CE_NATIVE) instead of just utf8locale. >> >> * I have verified that Sys.getenv() doesn't crash with UTF-8-invalid >> strings in the environment with this patch applied, but now >> print.Dlist does, because formatDL wants to compute the width of the >> string which has the 'bytes' encoding. If this is a good way to >> solve the problem, I can work on suggesting a fix for formatDL to >> avoid the error. > Thanks, indeed, type instability is a big problem of the appr...
2004 Jul 26
6
directing print.packageInfo to a file
...;, paste(paste(strwrap (vignetteMsg), collapse = "\n"), "\n\n", sep = "")) footers <- c("\n", "\n", "\n", "") formatDocEntry <- function(entry) { if (is.list(entry) || is.matrix(entry)) formatDL(entry, style = "list") else entry } for (i in which(!sapply(x$info, is.null))) { writeLines(headers[i], outConn, sep = "") writeLines(formatDocEntry(x$info[[i]]), outConn) writeLines(footers[i], outConn, sep = "") } close...
2003 Mar 12
1
problem with library() (or possibly grid) in r-devel
In recent r-devels, I have > library(help = grid) Error in formatDL(entry, style = "list") : incorrect value for x This doesn't happen for the other packages I have tried, so maybe this is a problem with grid. Deepayan
2012 Jul 19
3
write list to ascii
Dear all, apologies for this (perhaps recurrent) question but I did not found a question when searching mailing lists. How to write a list of a simple kind, e.g.: abc <- list(one=(1:2), two=(1:5)) # to a file? I understand that write() & co. cannot work but when I try sink("aa.txt", append=T, split=T) abc sink() # the output is indeed "split by rows" in the
2023 Jan 30
2
Sys.getenv(): Error in substring(x, m + 1L) : invalid multibyte string at '<ff>' if an environment variable contains \xFF
/Hello. SUMMARY: $ BOOM=$'\xFF' LC_ALL=en_US.UTF-8 Rscript --vanilla -e "Sys.getenv()" Error in substring(x, m + 1L) : invalid multibyte string at '<ff>' $ BOOM=$'\xFF' LC_ALL=en_US.UTF-8 Rscript --vanilla -e "Sys.getenv('BOOM')" [1] "\xff" BACKGROUND: I launch R through an Son of Grid Engine (SGE) scheduler, where the R
2004 Oct 18
0
Re: [R] Problem Compiling R-2.0.0 on Linux Alpha
...o use > ## format(Sys.time(), "%a %b %d %X %Y") > Sys.time(), > "; ", > .OStype(), > sep = "") > > ## we must not split the Built: field across lines > writeLines(c(formatDL(names(db), db, style = "list"), > paste("Built", Built, sep=": ")), > file.path(outDir, "DESCRIPTION")) > db["Built"] <- Built > > Obviously I have not tested on an Alphabc...tuvwxyz system &gt...
2004 Oct 17
2
Re: [R] Problem Compiling R-2.0.0 on Linux Alpha
Thanks, Peter, and Prof. Ripley. My efforts last night was mostly futile except that it told me about the embedded newline in Built field. Prof. Ripley: how do I get your fixes? Can I just download R-2.0.0-patched? Rajiv -------- Rajiv Prasad Scientist, Hydrology Group Pacific Northwest National Laboratory, P.O. Box 999, MSIN K9-33 Richland, WA 99352 Voice: (509) 375-2096 Fax: (509) 372-6089
2009 Mar 31
2
Wishlist: optional svn-revision number tag in package DESCRIPTION file
Hi, just a little wish : Could we have one (or maybe more) standardized optional tag(s) for package DESCRIPTION files to cover svn revision info? This would be very useful for bug reporting... I know that any developer is already free to append corresponding lines to DESCRIPTION files to do something of this sort --- e.g. lines like LastChangedDate: {$LastChangedDate: 2009-03-31 $}
2011 Apr 18
4
splom, plotmath: how to add three lines of information with alignment?
Dear expeRts, I would like to create a scatter plot matrix with splom(). The lower panel should contain some additional information about the samples shown in the upper panel plot, see the splom() call below. Now two questions came up: (1) The lower panels show "tau" and "alpha" on top of each other. How can I plot *three* expressions on top of each other? I tried several
2002 Jul 11
1
dyn.load tcl/tk (PR#1774)
...html latex example fix text html latex example formals text html latex example format text html latex example format.info text html latex example formatDL text html latex example formatc text html latex example formula text html latex example fourfoldplot text html latex example frame te...