[Rd] chron library: format.times, parse.format and h:m (PR#8507)

2006-01-19 Thread spector
Due to the following lines in parse.format:


else if (nf == 3) {
sep <- ""
fmt <- substring(format, first = 1:3, last = 1:3)
}

If a format code has 3 characters, it will not use a separator:

> library(chron)
> mytime = times('7:15:00')
> format(mytime,'h:m')
[1] "0715"
   - Phil Spector
 Statistical Computing Facility
 Department of Statistics
 UC Berkeley
 [EMAIL PROTECTED]




--please do not edit the information below--

Version:
 platform = x86_64-pc-linux-gnu
 arch = x86_64
 os = linux-gnu
 system = x86_64, linux-gnu
 status = 
 major = 2
 minor = 1.1
 year = 2005
 month = 06
 day = 20
 language = R

Locale:
C

Search Path:
 .GlobalEnv, package:chron, package:methods, package:stats, package:graphics, 
package:grDevices, package:utils, package:datasets, Autoloads, package:base

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] JPEG struct mismatch on Intel Macs (PR#9209)

2006-09-06 Thread spector
Full_Name: Phil Spector
Version: 2.3.1
OS: Mac OS X (Tiger)
Submission from: (NULL) (128.32.135.22)


Trying to close a jpeg() device on an Intel Mac causes the following:

> jpeg('out.jpg')
> plot(1:10)
> dev.off()
JPEG parameter struct mismatch: library thinks size is 372, caller expects 376
null device
  1
>


An empty jpg file is produced in 'out.jpg'  
- 

       - Phil Spector
 Statistical Computing
Facility
 Department of Statistics
 UC Berkeley

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel