Skip to content

Commit 0dc1efc

Browse files
author
smeyer
committed
avoid diffs in installed testing
git-svn-id: https://svn.r-project.org/R/trunk@87785 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 4d63f3f commit 0dc1efc

File tree

2 files changed

+3
-57
lines changed

2 files changed

+3
-57
lines changed

src/library/grDevices/man/pretty.Date.Rd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ pretty(Sys.Date())
4545
pretty(Sys.time(), n = 10)
4646
}
4747
pretty(as.Date("2000-03-01")) # R 1.0.0 came in a leap year
48-
49-
## time ranges in diverse scales:% also in ../../../../tests/reg-tests-1c.R
48+
\donttest{% locale-dependent, tested in ../../../../tests/reg-tests-1c.R
49+
## time ranges in diverse scales:
5050
steps <- stats::setNames(,
5151
c("10 secs", "1 min", "5 mins", "30 mins", "6 hours", "12 hours",
5252
"1 DSTday", "2 weeks", "1 month", "6 months", "1 year",
@@ -58,4 +58,5 @@ lapply(steps,
5858
attr(at, "labels")
5959
})
6060
}
61+
}
6162
\keyword{dplot}

tests/Examples/grDevices-Ex.Rout.save

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -3674,61 +3674,6 @@ attr(,"class")
36743674
> pretty(as.Date("2000-03-01")) # R 1.0.0 came in a leap year
36753675
[1] "2000-02-28" "2000-02-29" "2000-03-01" "2000-03-02" "2000-03-03"
36763676
[6] "2000-03-04"
3677-
>
3678-
> ## time ranges in diverse scales:% also in ../../../../tests/reg-tests-1c.R
3679-
> steps <- stats::setNames(,
3680-
+ c("10 secs", "1 min", "5 mins", "30 mins", "6 hours", "12 hours",
3681-
+ "1 DSTday", "2 weeks", "1 month", "6 months", "1 year",
3682-
+ "10 years", "50 years", "1000 years"))
3683-
> x <- as.POSIXct("2002-02-02 02:02")
3684-
> lapply(steps,
3685-
+ function(s) {
3686-
+ at <- pretty(seq(x, by = s, length.out = 2), n = 5)
3687-
+ attr(at, "labels")
3688-
+ })
3689-
$`10 secs`
3690-
[1] "00" "02" "04" "06" "08" "10"
3691-
3692-
$`1 min`
3693-
[1] "00" "10" "20" "30" "40" "50" "00"
3694-
3695-
$`5 mins`
3696-
[1] "02:02" "02:03" "02:04" "02:05" "02:06" "02:07"
3697-
3698-
$`30 mins`
3699-
[1] "02:00" "02:10" "02:20" "02:30" "02:40"
3700-
3701-
$`6 hours`
3702-
[1] "02:00" "03:00" "04:00" "05:00" "06:00" "07:00" "08:00" "09:00"
3703-
3704-
$`12 hours`
3705-
[1] "00:00" "03:00" "06:00" "09:00" "12:00" "15:00"
3706-
3707-
$`1 DSTday`
3708-
[1] "Feb 02 00:00" "Feb 02 06:00" "Feb 02 12:00" "Feb 02 18:00" "Feb 03 00:00"
3709-
[6] "Feb 03 06:00"
3710-
3711-
$`2 weeks`
3712-
[1] "Jan 28" "Feb 04" "Feb 11" "Feb 18"
3713-
3714-
$`1 month`
3715-
[1] "Jan 28" "Feb 04" "Feb 11" "Feb 18" "Feb 25" "Mar 04"
3716-
3717-
$`6 months`
3718-
[1] "Feb" "Mar" "Apr" "May" "Jun" "Jul" "Aug" "Sep"
3719-
3720-
$`1 year`
3721-
[1] "Jan" "Apr" "Jul" "Oct" "Jan" "Apr"
3722-
3723-
$`10 years`
3724-
[1] "2002" "2004" "2006" "2008" "2010" "2012" "2014"
3725-
3726-
$`50 years`
3727-
[1] "2000" "2010" "2020" "2030" "2040" "2050" "2060"
3728-
3729-
$`1000 years`
3730-
[1] "2000" "2200" "2400" "2600" "2800" "3000" "3200"
3731-
37323677
>
37333678
>
37343679
>

0 commit comments

Comments
 (0)