| 1 |
### Functions moved from ./Deprecated.R |
| 2 |
### ~~~~~~~~~~~~~~~ |
| 3 |
###--- remove things from here to ../Old_Defunct/ex-Deprecated.R |
| 4 |
### ==== == ============================== |
| 5 |
|
| 6 |
###___ add on top ___ |
| 7 |
|
| 8 |
|
| 9 |
## Deprecation of these on 2013-08-03, defunct since 2021-04-03 |
| 10 |
u.assign0 <- function(x, value, immediate = FALSE) |
| 11 |
## Purpose: Simple function with identical UI for both R & S |
| 12 |
## Author: Martin Maechler, Date: 7 Jul 1999 |
| 13 |
stop("u.assign0(..) is deprecated, use assign(.., , envir = .GlobalEnv)\n", |
| 14 |
" {if you really must; that is deprecated in packages as well}") |
| 15 |
|
| 16 |
u.get0 <- function(x) |
| 17 |
stop("u.get0(x) is deprecated, use get(x, envir = .GlobalEnv)") |
| 18 |
|
| 19 |
|
| 20 |
## Deprecated in 2005; defunctified 2016-12-01 : |
| 21 |
list2mat <- function(x, check = TRUE) |
| 22 |
{ |
| 23 |
## Purpose: list -> matrix |
| 24 |
## ------------------------------------------------------------------------- |
| 25 |
## Arguments: x a list whose first 2 el. MUST be equal length vectors |
| 26 |
## check: if T, check if lengths are ok. F: "quick & dirty" |
| 27 |
## ------------------------------------------------------------------------- |
| 28 |
## Author: Martin Maechler, Date: 19 May 93, 09:46 |
| 29 |
|
| 30 |
stop("list2mat(x) has been deprecated in 2005 and is defunct now. |
| 31 |
Use sapply(x, c) or vapply(..) instead!") |
| 32 |
} |
| 33 |
|
| 34 |
|
| 35 |
pl.ds <- function(...) { |
| 36 |
stop("pl.ds() has been renamed to plotDS() and is defunct now.\n", |
| 37 |
"Please change your code to use the new name") |
| 38 |
plotDS(...) |
| 39 |
} |
| 40 |
|
| 41 |
p.pllines <- function(x,y,group,lty=c(1,3,2,4),...) |
| 42 |
{ |
| 43 |
## Purpose: lines according to group |
| 44 |
## ------------------------------------------------------------------------- |
| 45 |
## Arguments: |
| 46 |
## ------------------------------------------------------------------------- |
| 47 |
## Author: Werner Stahel, Date: 21 Jun 93, 15:45 |
| 48 |
|
| 49 |
stop("p.pllines() is defunct: in R, use", |
| 50 |
"plot(x,y, lty=group, type='l', ...)") |
| 51 |
|
| 52 |
plot(x,y,type="n",...) |
| 53 |
ngr <- max(group) |
| 54 |
for (gg in 1:ngr) { |
| 55 |
ii <- group==gg & !is.na(x) & !is.na(y) |
| 56 |
if(sum(ii)) lines(x[ii],y[ii],lty=lty[1+(gg-1)%%length(lty)]) |
| 57 |
} |
| 58 |
} |