CRAN Package Check Results for Package OSDR

Last updated on 2022-03-05 09:51:33 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.1.3 2.12 36.87 38.99 ERROR
r-devel-linux-x86_64-debian-gcc 1.1.3 1.57 28.77 30.34 ERROR
r-devel-linux-x86_64-fedora-clang 1.1.3 47.52 ERROR
r-devel-linux-x86_64-fedora-gcc 1.1.3 36.88 ERROR
r-devel-windows-x86_64-new-UL 1.1.3 18.00 52.00 70.00 OK
r-devel-windows-x86_64-new-TK 1.1.3 ERROR
r-patched-linux-x86_64 1.1.3 1.52 35.46 36.98 ERROR
r-release-linux-x86_64 1.1.3 1.58 34.34 35.92 ERROR
r-release-macos-arm64 1.1.3 OK
r-release-macos-x86_64 1.1.3 OK
r-release-windows-ix86+x86_64 1.1.3 4.00 42.00 46.00 OK
r-oldrel-macos-x86_64 1.1.3 OK
r-oldrel-windows-ix86+x86_64 1.1.3 5.00 42.00 47.00 OK

Check Details

Version: 1.1.3
Check: package dependencies
Result: NOTE
    Package suggested but not available for checking: 'optmatch'
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64-new-TK, r-patched-linux-x86_64, r-release-linux-x86_64

Version: 1.1.3
Check: Rd cross-references
Result: NOTE
    Unknown package 'optmatch' in Rd xrefs
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64-new-TK, r-patched-linux-x86_64, r-release-linux-x86_64

Version: 1.1.3
Check: examples
Result: ERROR
    Running examples in 'OSDR-Ex.R' failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: OSDR
    > ### Title: Finds an Optimal System of Distinct Representatives from a
    > ### family of subsets.
    > ### Aliases: OSDR
    > ### Keywords: ~order optimal matching ~incomplete matching
    >
    > ### ** Examples
    >
    > ### example 1
    > # M is the list of suitable applicants for five jobs
    > M1 <- c("A" , "B")
    > M2 <- c("B" , "C")
    > M3 <- c("B")
    > M4 <- c("A" , "C")
    > M5 <- c("B" , "C" , "D")
    > M <- list(M1 , M2 , M3 , M4 , M5)
    >
    > OSDR(M)
    stop at 3 ...
    backward until step 2
    stop at 4 ...
    Hall's condition not satisfied at step 4: T_4 dropped
    $OSDR
    [1] "A" "C" "B" "0" "D"
    
    $matched
    [1] 1 2 3 5
    
    $unmatched
    [1] 4
    
    >
    > # $OSDR
    > # [1] "A" "C" "B" "0" "D"
    > # $matched
    > # [1] 1 2 3 5
    > # $unmatched
    > # [1] 4
    >
    > # job 4 unmatched so Hall's condition is not satisfied: it's impossible to fill all the jobs
    > # note that there are (order-\emph{suboptimal}) assignments of the same length of the optimal:
    > # eg: 0CBAD , BC0AD
    >
    > #### example 2: sligthly modified: more than one order optimal matching
    > M1<-c("A","B","C")
    > M2<-c("A","C")
    > M3<-c("B")
    > M4<-c("A","C")
    > M5<-c("A","D")
    > M <-list(M1,M2,M3,M4,M5)
    >
    > OSDR(M)
    stop at 4 ...
    Hall's condition not satisfied at step 4: T_4 dropped
    $OSDR
    [1] "A" "C" "B" "0" "D"
    
    $matched
    [1] 1 2 3 5
    
    $unmatched
    [1] 4
    
    >
    > # note there are other order optimal matchings: ACB0D or CAB0D
    > # note there are also other maximum size matchings (not order optimal):
    > # e.g. 0CBAD or BC0AD
    >
    > #### Case Study: matching men and women executives
    > # load executive data
    > data(exdata)
    >
    > # descriptives on:
    > # sex(0=M; 1=F) ;
    > # position (4=top manager, 3=medium/first line manager, 2 =supervisor);
    > table(exdata$sex)# there are more women
    
     0 1
    11 16
    > table(exdata$position,exdata$sex)# and more in apical position
    
     0 1
     2 2 4
     3 5 9
     4 4 3
    >
    > # order by matching priority (high-rank women first)
    > # see e.g. Lynn and Thompson(1997), J. of Appl. Psych. 82(3))
    > data <- exdata[order(-exdata$sex,-exdata$position, -exdata$seniority),]
    >
    > # covariate distance matrix
    > require(optmatch)
    Loading required package: optmatch
    Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
     there is no package called 'optmatch'
    > dist <- match_on(sex ~ position+education+year_born+contract+part_fulltime+seniority ,
    + data=exdata)
    Error in match_on(sex ~ position + education + year_born + contract + :
     could not find function "match_on"
    Execution halted
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-patched-linux-x86_64, r-release-linux-x86_64

Version: 1.1.3
Check: Rd cross-references
Result: NOTE
    Undeclared package ‘maxmatching’ in Rd xrefs
    Unknown package ‘optmatch’ in Rd xrefs
Flavor: r-devel-linux-x86_64-fedora-clang

Version: 1.1.3
Check: examples
Result: ERROR
    Running examples in ‘OSDR-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: OSDR
    > ### Title: Finds an Optimal System of Distinct Representatives from a
    > ### family of subsets.
    > ### Aliases: OSDR
    > ### Keywords: ~order optimal matching ~incomplete matching
    >
    > ### ** Examples
    >
    > ### example 1
    > # M is the list of suitable applicants for five jobs
    > M1 <- c("A" , "B")
    > M2 <- c("B" , "C")
    > M3 <- c("B")
    > M4 <- c("A" , "C")
    > M5 <- c("B" , "C" , "D")
    > M <- list(M1 , M2 , M3 , M4 , M5)
    >
    > OSDR(M)
    stop at 3 ...
    backward until step 2
    stop at 4 ...
    Hall's condition not satisfied at step 4: T_4 dropped
    $OSDR
    [1] "A" "C" "B" "0" "D"
    
    $matched
    [1] 1 2 3 5
    
    $unmatched
    [1] 4
    
    >
    > # $OSDR
    > # [1] "A" "C" "B" "0" "D"
    > # $matched
    > # [1] 1 2 3 5
    > # $unmatched
    > # [1] 4
    >
    > # job 4 unmatched so Hall's condition is not satisfied: it's impossible to fill all the jobs
    > # note that there are (order-\emph{suboptimal}) assignments of the same length of the optimal:
    > # eg: 0CBAD , BC0AD
    >
    > #### example 2: sligthly modified: more than one order optimal matching
    > M1<-c("A","B","C")
    > M2<-c("A","C")
    > M3<-c("B")
    > M4<-c("A","C")
    > M5<-c("A","D")
    > M <-list(M1,M2,M3,M4,M5)
    >
    > OSDR(M)
    stop at 4 ...
    Hall's condition not satisfied at step 4: T_4 dropped
    $OSDR
    [1] "A" "C" "B" "0" "D"
    
    $matched
    [1] 1 2 3 5
    
    $unmatched
    [1] 4
    
    >
    > # note there are other order optimal matchings: ACB0D or CAB0D
    > # note there are also other maximum size matchings (not order optimal):
    > # e.g. 0CBAD or BC0AD
    >
    > #### Case Study: matching men and women executives
    > # load executive data
    > data(exdata)
    >
    > # descriptives on:
    > # sex(0=M; 1=F) ;
    > # position (4=top manager, 3=medium/first line manager, 2 =supervisor);
    > table(exdata$sex)# there are more women
    
     0 1
    11 16
    > table(exdata$position,exdata$sex)# and more in apical position
    
     0 1
     2 2 4
     3 5 9
     4 4 3
    >
    > # order by matching priority (high-rank women first)
    > # see e.g. Lynn and Thompson(1997), J. of Appl. Psych. 82(3))
    > data <- exdata[order(-exdata$sex,-exdata$position, -exdata$seniority),]
    >
    > # covariate distance matrix
    > require(optmatch)
    Loading required package: optmatch
    Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
     there is no package called ‘optmatch’
    > dist <- match_on(sex ~ position+education+year_born+contract+part_fulltime+seniority ,
    + data=exdata)
    Error in match_on(sex ~ position + education + year_born + contract + :
     could not find function "match_on"
    Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64-new-TK