CRAN Package Check Results for Package oc

Last updated on 2021-10-05 21:51:24 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.2 8.05 36.52 44.57 ERROR
r-devel-linux-x86_64-debian-gcc 1.2 7.03 29.10 36.13 ERROR
r-devel-linux-x86_64-fedora-clang 1.2 68.93 ERROR
r-devel-linux-x86_64-fedora-gcc 1.2 58.11 ERROR
r-devel-windows-x86_64 1.2 13.00 46.00 59.00 ERROR
r-devel-windows-x86_64-gcc10-UCRT 1.2 ERROR
r-patched-linux-x86_64 1.2 7.61 40.32 47.93 OK
r-patched-solaris-x86 1.2 90.20 OK
r-release-linux-x86_64 1.2 7.73 39.72 47.45 OK
r-release-macos-arm64 1.2 OK
r-release-macos-x86_64 1.2 OK
r-release-windows-ix86+x86_64 1.2 21.00 81.00 102.00 OK
r-oldrel-macos-x86_64 1.2 OK
r-oldrel-windows-ix86+x86_64 1.2 18.00 77.00 95.00 OK

Check Details

Version: 1.2
Check: examples
Result: ERROR
    Running examples in 'oc-Ex.R' failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: oc
    > ### Title: Optimal Classification Roll Call Scaling
    > ### Aliases: oc
    > ### Keywords: multivariate
    >
    > ### ** Examples
    >
    > #This data file is the same as reading file using:
    > ## Not run:
    > ##D sen90 <- readKH("ftp://voteview.com/sen90kh.ord")
    > ##D
    > ## End(Not run)
    > #All ORD files can be found on www.voteview.com
    > data(sen90)
    > summary(sen90)
    Source: C:/sen90kh.ord
    
    Number of Legislators: 102
    Number of Roll Call Votes: 596
    
    
    Using the following codes to represent roll call votes:
    Yea: 1 2 3
    Nay: 4 5 6
    Abstentions: 7 8 9
    Not In Legislature: 0
    
    Party Composition:
     D R
    65 37
    
    Vote Summary:
     Count Percent
    0 (notInLegis) 690 1.1
    1 (yea) 26989 44.4
    2 (yea) 1065 1.8
    3 (yea) 2924 4.8
    4 (nay) 1504 2.5
    5 (nay) 1047 1.7
    6 (nay) 20206 33.2
    8 (missing) 1 0.0
    9 (missing) 6366 10.5
    
    Use summary(sen90,verbose=TRUE) for more detailed information.
    >
    > #Small executable example
    > sen90.1d <- oc(sen90,dims=1,polarity=c(7))
    
    Preparing to run Optimal Classification...
    
     Checking data...
    
     All members meet minimum vote requirements.
    
     Votes dropped:
     ... 77 of 596 total votes dropped.
    
     Running Optimal Classification...
    
     Generating Start Coordinates...
     Running Edith Algorithm...
     Permuting adjacent legislator pairs...
     Permuting adjacent legislator triples...
    
    
    Optimal Classification completed successfully.
    Optimal Classification took 5.039 seconds to execute.
    
    >
    > #Output file identical to one produced by command below
    > ## Not run:
    > ##D sen90oc <- oc(sen90,dims=2,polarity=c(7,2))
    > ##D
    > ## End(Not run)
    > data(sen90oc)
    > summary(sen90oc)
    
    
    SUMMARY OF OPTIMAL CLASSIFICATION OBJECT
    ----------------------------
    
    Number of Legislators: 102 (0 legislators deleted)
    Number of Votes: 519 (77 votes deleted)
    Number of Dimensions: 2
    Predicted Yeas: 20935 of 23899 (87.6%) predictions correct
    Predicted Nays: 19675 of 22541 (87.3%) predictions correct
    
    The first 10 legislator estimates are:
     coord1D coord2D
    JOHNSON (D USA) -0.468 -0.392
    SPARKMAN (D AL) 0.203 0.603
    HILL (D AL) 0.320 0.678
    GRUENING (D AK) -0.510 0.833
    BARTLETT (D AK) -0.365 0.605
    HAYDEN (D AZ) -0.010 0.621
    FANNIN (R AZ) 0.740 -0.188
    FULBRIGHT (D AR) 0.008 0.881
    MCCLELLAN (D AR) 0.596 0.476
    KUCHEL (R CA) -0.057 -0.597
    > plot(sen90oc)
    Error in axis(2, at = yt, ...) :
     formal argument "at" matched by multiple actual arguments
    Calls: plot -> plot.OCobject
    Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 1.2
Check: re-building of vignette outputs
Result: WARN
    Error(s) in re-building vignettes:
     ...
    --- re-building 'oc.Rnw' using Sweave
    Loading required package: pscl
    Classes and Methods for R developed in the
    Political Science Computational Laboratory
    Department of Political Science
    Stanford University
    Simon Jackman
    hurdle and zeroinfl functions by Achim Zeileis
    
    ## Optimal Classification Ideal Point Package
    ## Copyright 2007 -2021
    ## Keith Poole, Jeffrey Lewis, James Lo, and Royce Carroll
    ## Support provided by the U.S. National Science Foundation
    ## NSF Grant SES-0611974
    
    
    Error: processing vignette 'oc.Rnw' failed with diagnostics:
     chunk 5 (label = four)
    Error in axis(2, at = yt, ...) :
     formal argument "at" matched by multiple actual arguments
    
    --- failed re-building 'oc.Rnw'
    
    SUMMARY: processing the following file failed:
     'oc.Rnw'
    
    Error: Vignette re-building failed.
    Execution halted
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc

Version: 1.2
Check: examples
Result: ERROR
    Running examples in ‘oc-Ex.R’ failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: oc
    > ### Title: Optimal Classification Roll Call Scaling
    > ### Aliases: oc
    > ### Keywords: multivariate
    >
    > ### ** Examples
    >
    > #This data file is the same as reading file using:
    > ## Not run:
    > ##D sen90 <- readKH("ftp://voteview.com/sen90kh.ord")
    > ##D
    > ## End(Not run)
    > #All ORD files can be found on www.voteview.com
    > data(sen90)
    > summary(sen90)
    Source: C:/sen90kh.ord
    
    Number of Legislators: 102
    Number of Roll Call Votes: 596
    
    
    Using the following codes to represent roll call votes:
    Yea: 1 2 3
    Nay: 4 5 6
    Abstentions: 7 8 9
    Not In Legislature: 0
    
    Party Composition:
     D R
    65 37
    
    Vote Summary:
     Count Percent
    0 (notInLegis) 690 1.1
    1 (yea) 26989 44.4
    2 (yea) 1065 1.8
    3 (yea) 2924 4.8
    4 (nay) 1504 2.5
    5 (nay) 1047 1.7
    6 (nay) 20206 33.2
    8 (missing) 1 0.0
    9 (missing) 6366 10.5
    
    Use summary(sen90,verbose=TRUE) for more detailed information.
    >
    > #Small executable example
    > sen90.1d <- oc(sen90,dims=1,polarity=c(7))
    
    Preparing to run Optimal Classification...
    
     Checking data...
    
     All members meet minimum vote requirements.
    
     Votes dropped:
     ... 77 of 596 total votes dropped.
    
     Running Optimal Classification...
    
     Generating Start Coordinates...
     Running Edith Algorithm...
     Permuting adjacent legislator pairs...
     Permuting adjacent legislator triples...
    
    
    Optimal Classification completed successfully.
    Optimal Classification took 5.265 seconds to execute.
    
    >
    > #Output file identical to one produced by command below
    > ## Not run:
    > ##D sen90oc <- oc(sen90,dims=2,polarity=c(7,2))
    > ##D
    > ## End(Not run)
    > data(sen90oc)
    > summary(sen90oc)
    
    
    SUMMARY OF OPTIMAL CLASSIFICATION OBJECT
    ----------------------------
    
    Number of Legislators: 102 (0 legislators deleted)
    Number of Votes: 519 (77 votes deleted)
    Number of Dimensions: 2
    Predicted Yeas: 20935 of 23899 (87.6%) predictions correct
    Predicted Nays: 19675 of 22541 (87.3%) predictions correct
    
    The first 10 legislator estimates are:
     coord1D coord2D
    JOHNSON (D USA) -0.468 -0.392
    SPARKMAN (D AL) 0.203 0.603
    HILL (D AL) 0.320 0.678
    GRUENING (D AK) -0.510 0.833
    BARTLETT (D AK) -0.365 0.605
    HAYDEN (D AZ) -0.010 0.621
    FANNIN (R AZ) 0.740 -0.188
    FULBRIGHT (D AR) 0.008 0.881
    MCCLELLAN (D AR) 0.596 0.476
    KUCHEL (R CA) -0.057 -0.597
    > plot(sen90oc)
    Error in axis(2, at = yt, ...) :
     formal argument "at" matched by multiple actual arguments
    Calls: plot -> plot.OCobject
    Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 1.2
Check: examples
Result: ERROR
    Running examples in ‘oc-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: oc
    > ### Title: Optimal Classification Roll Call Scaling
    > ### Aliases: oc
    > ### Keywords: multivariate
    >
    > ### ** Examples
    >
    > #This data file is the same as reading file using:
    > ## Not run:
    > ##D sen90 <- readKH("ftp://voteview.com/sen90kh.ord")
    > ##D
    > ## End(Not run)
    > #All ORD files can be found on www.voteview.com
    > data(sen90)
    > summary(sen90)
    Source: C:/sen90kh.ord
    
    Number of Legislators: 102
    Number of Roll Call Votes: 596
    
    
    Using the following codes to represent roll call votes:
    Yea: 1 2 3
    Nay: 4 5 6
    Abstentions: 7 8 9
    Not In Legislature: 0
    
    Party Composition:
     D R
    65 37
    
    Vote Summary:
     Count Percent
    0 (notInLegis) 690 1.1
    1 (yea) 26989 44.4
    2 (yea) 1065 1.8
    3 (yea) 2924 4.8
    4 (nay) 1504 2.5
    5 (nay) 1047 1.7
    6 (nay) 20206 33.2
    8 (missing) 1 0.0
    9 (missing) 6366 10.5
    
    Use summary(sen90,verbose=TRUE) for more detailed information.
    >
    > #Small executable example
    > sen90.1d <- oc(sen90,dims=1,polarity=c(7))
    
    Preparing to run Optimal Classification...
    
     Checking data...
    
     All members meet minimum vote requirements.
    
     Votes dropped:
     ... 77 of 596 total votes dropped.
    
     Running Optimal Classification...
    
     Generating Start Coordinates...
     Running Edith Algorithm...
     Permuting adjacent legislator pairs...
     Permuting adjacent legislator triples...
    
    
    Optimal Classification completed successfully.
    Optimal Classification took 16.444 seconds to execute.
    
    >
    > #Output file identical to one produced by command below
    > ## Not run:
    > ##D sen90oc <- oc(sen90,dims=2,polarity=c(7,2))
    > ##D
    > ## End(Not run)
    > data(sen90oc)
    > summary(sen90oc)
    
    
    SUMMARY OF OPTIMAL CLASSIFICATION OBJECT
    ----------------------------
    
    Number of Legislators: 102 (0 legislators deleted)
    Number of Votes: 519 (77 votes deleted)
    Number of Dimensions: 2
    Predicted Yeas: 20935 of 23899 (87.6%) predictions correct
    Predicted Nays: 19675 of 22541 (87.3%) predictions correct
    
    The first 10 legislator estimates are:
     coord1D coord2D
    JOHNSON (D USA) -0.468 -0.392
    SPARKMAN (D AL) 0.203 0.603
    HILL (D AL) 0.320 0.678
    GRUENING (D AK) -0.510 0.833
    BARTLETT (D AK) -0.365 0.605
    HAYDEN (D AZ) -0.010 0.621
    FANNIN (R AZ) 0.740 -0.188
    FULBRIGHT (D AR) 0.008 0.881
    MCCLELLAN (D AR) 0.596 0.476
    KUCHEL (R CA) -0.057 -0.597
    > plot(sen90oc)
    Error in axis(2, at = yt, ...) :
     formal argument "at" matched by multiple actual arguments
    Calls: plot -> plot.OCobject
    Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang

Version: 1.2
Check: re-building of vignette outputs
Result: WARN
    Error(s) in re-building vignettes:
    --- re-building ‘oc.Rnw’ using Sweave
    Loading required package: pscl
    Classes and Methods for R developed in the
    Political Science Computational Laboratory
    Department of Political Science
    Stanford University
    Simon Jackman
    hurdle and zeroinfl functions by Achim Zeileis
    
    ## Optimal Classification Ideal Point Package
    ## Copyright 2007 -2021
    ## Keith Poole, Jeffrey Lewis, James Lo, and Royce Carroll
    ## Support provided by the U.S. National Science Foundation
    ## NSF Grant SES-0611974
    
    
    Error: processing vignette 'oc.Rnw' failed with diagnostics:
     chunk 5 (label = four)
    Error in axis(2, at = yt, ...) :
     formal argument "at" matched by multiple actual arguments
    
    --- failed re-building ‘oc.Rnw’
    
    SUMMARY: processing the following file failed:
     ‘oc.Rnw’
    
    Error: Vignette re-building failed.
    Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64

Version: 1.2
Check: examples
Result: ERROR
    Running examples in ‘oc-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: oc
    > ### Title: Optimal Classification Roll Call Scaling
    > ### Aliases: oc
    > ### Keywords: multivariate
    >
    > ### ** Examples
    >
    > #This data file is the same as reading file using:
    > ## Not run:
    > ##D sen90 <- readKH("ftp://voteview.com/sen90kh.ord")
    > ##D
    > ## End(Not run)
    > #All ORD files can be found on www.voteview.com
    > data(sen90)
    > summary(sen90)
    Source: C:/sen90kh.ord
    
    Number of Legislators: 102
    Number of Roll Call Votes: 596
    
    
    Using the following codes to represent roll call votes:
    Yea: 1 2 3
    Nay: 4 5 6
    Abstentions: 7 8 9
    Not In Legislature: 0
    
    Party Composition:
     D R
    65 37
    
    Vote Summary:
     Count Percent
    0 (notInLegis) 690 1.1
    1 (yea) 26989 44.4
    2 (yea) 1065 1.8
    3 (yea) 2924 4.8
    4 (nay) 1504 2.5
    5 (nay) 1047 1.7
    6 (nay) 20206 33.2
    8 (missing) 1 0.0
    9 (missing) 6366 10.5
    
    Use summary(sen90,verbose=TRUE) for more detailed information.
    >
    > #Small executable example
    > sen90.1d <- oc(sen90,dims=1,polarity=c(7))
    
    Preparing to run Optimal Classification...
    
     Checking data...
    
     All members meet minimum vote requirements.
    
     Votes dropped:
     ... 77 of 596 total votes dropped.
    
     Running Optimal Classification...
    
     Generating Start Coordinates...
     Running Edith Algorithm...
     Permuting adjacent legislator pairs...
     Permuting adjacent legislator triples...
    
    
    Optimal Classification completed successfully.
    Optimal Classification took 14.956 seconds to execute.
    
    >
    > #Output file identical to one produced by command below
    > ## Not run:
    > ##D sen90oc <- oc(sen90,dims=2,polarity=c(7,2))
    > ##D
    > ## End(Not run)
    > data(sen90oc)
    > summary(sen90oc)
    
    
    SUMMARY OF OPTIMAL CLASSIFICATION OBJECT
    ----------------------------
    
    Number of Legislators: 102 (0 legislators deleted)
    Number of Votes: 519 (77 votes deleted)
    Number of Dimensions: 2
    Predicted Yeas: 20935 of 23899 (87.6%) predictions correct
    Predicted Nays: 19675 of 22541 (87.3%) predictions correct
    
    The first 10 legislator estimates are:
     coord1D coord2D
    JOHNSON (D USA) -0.468 -0.392
    SPARKMAN (D AL) 0.203 0.603
    HILL (D AL) 0.320 0.678
    GRUENING (D AK) -0.510 0.833
    BARTLETT (D AK) -0.365 0.605
    HAYDEN (D AZ) -0.010 0.621
    FANNIN (R AZ) 0.740 -0.188
    FULBRIGHT (D AR) 0.008 0.881
    MCCLELLAN (D AR) 0.596 0.476
    KUCHEL (R CA) -0.057 -0.597
    > plot(sen90oc)
    Error in axis(2, at = yt, ...) :
     formal argument "at" matched by multiple actual arguments
    Calls: plot -> plot.OCobject
    Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 1.2
Check: examples
Result: ERROR
    Running examples in 'oc-Ex.R' failed
    The error most likely occurred in:
    
    > ### Name: oc
    > ### Title: Optimal Classification Roll Call Scaling
    > ### Aliases: oc
    > ### Keywords: multivariate
    >
    > ### ** Examples
    >
    > #This data file is the same as reading file using:
    > ## Not run:
    > ##D sen90 <- readKH("ftp://voteview.com/sen90kh.ord")
    > ##D
    > ## End(Not run)
    > #All ORD files can be found on www.voteview.com
    > data(sen90)
    > summary(sen90)
    Source: C:/sen90kh.ord
    
    Number of Legislators: 102
    Number of Roll Call Votes: 596
    
    
    Using the following codes to represent roll call votes:
    Yea: 1 2 3
    Nay: 4 5 6
    Abstentions: 7 8 9
    Not In Legislature: 0
    
    Party Composition:
     D R
    65 37
    
    Vote Summary:
     Count Percent
    0 (notInLegis) 690 1.1
    1 (yea) 26989 44.4
    2 (yea) 1065 1.8
    3 (yea) 2924 4.8
    4 (nay) 1504 2.5
    5 (nay) 1047 1.7
    6 (nay) 20206 33.2
    8 (missing) 1 0.0
    9 (missing) 6366 10.5
    
    Use summary(sen90,verbose=TRUE) for more detailed information.
    >
    > #Small executable example
    > sen90.1d <- oc(sen90,dims=1,polarity=c(7))
    
    Preparing to run Optimal Classification...
    
     Checking data...
    
     All members meet minimum vote requirements.
    
     Votes dropped:
     ... 77 of 596 total votes dropped.
    
     Running Optimal Classification...
    
     Generating Start Coordinates...
     Running Edith Algorithm...
     Permuting adjacent legislator pairs...
     Permuting adjacent legislator triples...
    
    
    Optimal Classification completed successfully.
    Optimal Classification took 4.38 seconds to execute.
    
    >
    > #Output file identical to one produced by command below
    > ## Not run:
    > ##D sen90oc <- oc(sen90,dims=2,polarity=c(7,2))
    > ##D
    > ## End(Not run)
    > data(sen90oc)
    > summary(sen90oc)
    
    
    SUMMARY OF OPTIMAL CLASSIFICATION OBJECT
    ----------------------------
    
    Number of Legislators: 102 (0 legislators deleted)
    Number of Votes: 519 (77 votes deleted)
    Number of Dimensions: 2
    Predicted Yeas: 20935 of 23899 (87.6%) predictions correct
    Predicted Nays: 19675 of 22541 (87.3%) predictions correct
    
    The first 10 legislator estimates are:
     coord1D coord2D
    JOHNSON (D USA) -0.468 -0.392
    SPARKMAN (D AL) 0.203 0.603
    HILL (D AL) 0.320 0.678
    GRUENING (D AK) -0.510 0.833
    BARTLETT (D AK) -0.365 0.605
    HAYDEN (D AZ) -0.010 0.621
    FANNIN (R AZ) 0.740 -0.188
    FULBRIGHT (D AR) 0.008 0.881
    MCCLELLAN (D AR) 0.596 0.476
    KUCHEL (R CA) -0.057 -0.597
    > plot(sen90oc)
    Error in axis(2, at = yt, ...) :
     formal argument "at" matched by multiple actual arguments
    Calls: plot -> plot.OCobject
    Execution halted
Flavor: r-devel-windows-x86_64

Version: 1.2
Check: examples
Result: ERROR
    Running examples in 'oc-Ex.R' failed
    The error most likely occurred in:
    
    > ### Name: oc
    > ### Title: Optimal Classification Roll Call Scaling
    > ### Aliases: oc
    > ### Keywords: multivariate
    >
    > ### ** Examples
    >
    > #This data file is the same as reading file using:
    > ## Not run:
    > ##D sen90 <- readKH("ftp://voteview.com/sen90kh.ord")
    > ##D
    > ## End(Not run)
    > #All ORD files can be found on www.voteview.com
    > data(sen90)
    > summary(sen90)
    Source: C:/sen90kh.ord
    
    Number of Legislators: 102
    Number of Roll Call Votes: 596
    
    
    Using the following codes to represent roll call votes:
    Yea: 1 2 3
    Nay: 4 5 6
    Abstentions: 7 8 9
    Not In Legislature: 0
    
    Party Composition:
     D R
    65 37
    
    Vote Summary:
     Count Percent
    0 (notInLegis) 690 1.1
    1 (yea) 26989 44.4
    2 (yea) 1065 1.8
    3 (yea) 2924 4.8
    4 (nay) 1504 2.5
    5 (nay) 1047 1.7
    6 (nay) 20206 33.2
    8 (missing) 1 0.0
    9 (missing) 6366 10.5
    
    Use summary(sen90,verbose=TRUE) for more detailed information.
    >
    > #Small executable example
    > sen90.1d <- oc(sen90,dims=1,polarity=c(7))
    
    Preparing to run Optimal Classification...
    
     Checking data...
    
     All members meet minimum vote requirements.
    
     Votes dropped:
     ... 77 of 596 total votes dropped.
    
     Running Optimal Classification...
    
     Generating Start Coordinates...
     Running Edith Algorithm...
     Permuting adjacent legislator pairs...
     Permuting adjacent legislator triples...
    
    
    Optimal Classification completed successfully.
    Optimal Classification took 5.33 seconds to execute.
    
    >
    > #Output file identical to one produced by command below
    > ## Not run:
    > ##D sen90oc <- oc(sen90,dims=2,polarity=c(7,2))
    > ##D
    > ## End(Not run)
    > data(sen90oc)
    > summary(sen90oc)
    
    
    SUMMARY OF OPTIMAL CLASSIFICATION OBJECT
    ----------------------------
    
    Number of Legislators: 102 (0 legislators deleted)
    Number of Votes: 519 (77 votes deleted)
    Number of Dimensions: 2
    Predicted Yeas: 20935 of 23899 (87.6%) predictions correct
    Predicted Nays: 19675 of 22541 (87.3%) predictions correct
    
    The first 10 legislator estimates are:
     coord1D coord2D
    JOHNSON (D USA) -0.468 -0.392
    SPARKMAN (D AL) 0.203 0.603
    HILL (D AL) 0.320 0.678
    GRUENING (D AK) -0.510 0.833
    BARTLETT (D AK) -0.365 0.605
    HAYDEN (D AZ) -0.010 0.621
    FANNIN (R AZ) 0.740 -0.188
    FULBRIGHT (D AR) 0.008 0.881
    MCCLELLAN (D AR) 0.596 0.476
    KUCHEL (R CA) -0.057 -0.597
    > plot(sen90oc)
    Error in axis(2, at = yt, ...) :
     formal argument "at" matched by multiple actual arguments
    Calls: plot -> plot.OCobject
    Execution halted
Flavor: r-devel-windows-x86_64-gcc10-UCRT

Version: 1.2
Check: running R code from vignettes
Result: ERROR
    Errors in running code in vignettes:
    when running code in 'oc.Rnw'
    
    > library(oc)
    Loading required package: pscl
    Classes and Methods for R developed in the
    Political Science Computational Laboratory
    Department of Political Science
    Stanford University
    Simon Jackman
    hurdle and zeroinfl functions by Achim Zeileis
    
    ## Optimal Classification Ideal Point Package
    ## Copyright 2007 -2021
    ## Keith Poole, Jeffrey Lewis, James Lo, and Royce Carroll
    ## Support provided by the U.S. National Science Foundation
    ## NSF Grant SES-0611974
    
    
    > data(sen90)
    
    > sen90
    Source: C:/sen90kh.ord
    Number of Legislators: 102
    Number of Votes: 596
    
    Using the following codes to represent roll call votes:
    Yea: 1 2 3
    Nay: 4 5 6
    Abstentions: 7 8 9
    Not In Legislature: 0
    
    Legislator-specific variables:
    [1] "state" "icpsrState" "cd" "icpsrLegis" "party"
    [6] "partyCode"
    Detailed information is available via the summary function.
    
    > selector <- c(21, 22, 44, 45, 46, 47, 48, 49, 50,
    + 53, 54, 55, 56, 58, 59, 60, 61, 62, 65, 66, 67, 68, 69, 70,
    + 71, 72, 73, 74, 75, 77, .... [TRUNCATED]
    
    > sen90$m <- length(selector)
    
    > sen90$votes <- sen90$votes[, selector]
    
    > rownames(sen90$votes)[1:12]
     [1] "JOHNSON (D USA)" "SPARKMAN (D AL)" "HILL (D AL)" "GRUENING (D AK)"
     [5] "BARTLETT (D AK)" "HAYDEN (D AZ)" "FANNIN (R AZ)" "FULBRIGHT (D AR)"
     [9] "MCCLELLAN (D AR)" "KUCHEL (R CA)" "MURPHY (R CA)" "DOMINICK (R CO)"
    
    > result <- oc(sen90, polarity = c(2, 5))
    
    Preparing to run Optimal Classification...
    
     Checking data...
    
     ... 1 of 102 total members dropped.
    
     Votes dropped:
     ... 36 of 208 total votes dropped.
    
     Running Optimal Classification...
    
     Generating Start Coordinates...
     Running Edith Algorithm...
     Getting normal vectors...
     Getting legislator coordinates...
     Getting normal vectors...
     Getting legislator coordinates...
     Getting normal vectors...
     Getting legislator coordinates...
     Getting normal vectors...
     Getting legislator coordinates...
     Getting normal vectors...
     Getting legislator coordinates...
     Getting normal vectors...
     Getting legislator coordinates...
     Getting normal vectors...
     Getting legislator coordinates...
     Getting normal vectors...
     Getting legislator coordinates...
     Getting normal vectors...
     Getting legislator coordinates...
     Getting normal vectors...
     Getting legislator coordinates...
    
    
    Optimal Classification completed successfully.
    Optimal Classification took 3.07 seconds to execute.
    
    
    > summary(result)
    
    
    SUMMARY OF OPTIMAL CLASSIFICATION OBJECT
    ----------------------------
    
    Number of Legislators: 101 (1 legislators deleted)
    Number of Votes: 172 (36 votes deleted)
    Number of Dimensions: 2
    Predicted Yeas: 6820 of 7732 (88.2%) predictions correct
    Predicted Nays: 6773 of 7570 (89.5%) predictions correct
    
    The first 10 legislator estimates are:
     coord1D coord2D
    JOHNSON (D USA) -0.271 -0.795
    SPARKMAN (D AL) 0.218 0.699
    HILL (D AL) 0.425 0.686
    GRUENING (D AK) -0.505 0.616
    BARTLETT (D AK) -0.540 0.416
    HAYDEN (D AZ) 0.129 0.675
    FANNIN (R AZ) 0.631 -0.215
    FULBRIGHT (D AR) 0.071 0.931
    MCCLELLAN (D AR) 0.456 0.301
    KUCHEL (R CA) -0.091 -0.429
    
    > plot(result)
    
     When sourcing 'oc.R':
    Error: formal argument "at" matched by multiple actual arguments
    Execution halted
    
     'oc.Rnw'... failed
Flavor: r-devel-windows-x86_64-gcc10-UCRT

Version: 1.2
Check: re-building of vignette outputs
Result: NOTE
    Error(s) in re-building vignettes:
    --- re-building 'oc.Rnw' using Sweave
    Loading required package: pscl
    Classes and Methods for R developed in the
    Political Science Computational Laboratory
    Department of Political Science
    Stanford University
    Simon Jackman
    hurdle and zeroinfl functions by Achim Zeileis
    
    ## Optimal Classification Ideal Point Package
    ## Copyright 2007 -2021
    ## Keith Poole, Jeffrey Lewis, James Lo, and Royce Carroll
    ## Support provided by the U.S. National Science Foundation
    ## NSF Grant SES-0611974
    
    
    Error: processing vignette 'oc.Rnw' failed with diagnostics:
     chunk 5 (label = four)
    Error in axis(2, at = yt, ...) :
     formal argument "at" matched by multiple actual arguments
    
    --- failed re-building 'oc.Rnw'
    
    SUMMARY: processing the following file failed:
     'oc.Rnw'
    
    Error: Vignette re-building failed.
    Execution halted
Flavor: r-devel-windows-x86_64-gcc10-UCRT