CRAN Package Check Results for Package REAT

Last updated on 2020-12-10 17:48:29 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 3.0.2 6.92 56.69 63.61 ERROR
r-devel-linux-x86_64-debian-gcc 3.0.2 5.83 44.37 50.20 ERROR
r-devel-linux-x86_64-fedora-clang 3.0.2 84.13 ERROR
r-devel-linux-x86_64-fedora-gcc 3.0.2 74.57 ERROR
r-devel-windows-ix86+x86_64 3.0.2 14.00 69.00 83.00 ERROR
r-patched-linux-x86_64 3.0.2 7.18 56.64 63.82 OK
r-patched-solaris-x86 3.0.2 98.30 NOTE
r-release-linux-x86_64 3.0.2 7.07 57.27 64.34 OK
r-release-macos-x86_64 3.0.2 NOTE
r-release-windows-ix86+x86_64 3.0.2 13.00 78.00 91.00 OK
r-oldrel-macos-x86_64 3.0.2 NOTE
r-oldrel-windows-ix86+x86_64 3.0.2 11.00 66.00 77.00 OK

Check Details

Version: 3.0.2
Check: examples
Result: ERROR
    Running examples in 'REAT-Ex.R' failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: hansen
    > ### Title: Hansen accessibility
    > ### Aliases: hansen
    >
    > ### ** Examples
    >
    > # Example from Levy/Weitz (2009):
    > # Data for the existing and the new location
    > locations <- c("Existing Store", "New Store")
    > S_j <- c(5000, 10000)
    > location_data <- data.frame(locations, S_j)
    > # Data for the two communities (Rock Creek and Oak Hammock)
    > communities <- c("Rock Creek", "Oak Hammock")
    > C_i <- c(5000000, 3000000)
    > community_data <- data.frame(communities, C_i)
    > # Combining location and submarket data in the interaction matrix
    > interactionmatrix <- merge (community_data, location_data)
    > # Adding driving time:
    > interactionmatrix[1,5] <- 10
    > interactionmatrix[2,5] <- 5
    > interactionmatrix[3,5] <- 5
    > interactionmatrix[4,5] <- 15
    > colnames(interactionmatrix) <- c("communities", "C_i", "locations", "S_j", "d_ij")
    > shoppingcenters1 <- interactionmatrix
    > huff_shares <- huff(shoppingcenters1, "communities", "locations", "S_j", "d_ij")
    Huff Model
    
    Summary:
    2 locations with mean attractivity = 7500
    2 origins with mean transport costs = 8.75
    Attractivity weighting (pow) with Gamma = 1
    Distance weighting (pow) with Lambda = -2
    
    Interaction matrix
     communities C_i locations S_j d_ij U_ij sum_U_ij p_ij
    2 Oak Hammock 3e+06 Existing Store 5000 5 200.00000 244.4444 0.8181818
    4 Oak Hammock 3e+06 New Store 10000 15 44.44444 244.4444 0.1818182
    1 Rock Creek 5e+06 Existing Store 5000 10 50.00000 450.0000 0.1111111
    3 Rock Creek 5e+06 New Store 10000 5 400.00000 450.0000 0.8888889
    > # Market shares of the new location:
    > huff_shares$ijmatrix[huff_shares$ijmatrix$locations == "New Store",]
     communities C_i locations S_j d_ij U_ij sum_U_ij p_ij
    4 Oak Hammock 3e+06 New Store 10000 15 44.44444 244.4444 0.1818182
    3 Rock Creek 5e+06 New Store 10000 5 400.00000 450.0000 0.8888889
    > # Hansen accessibility for Oak Hammock and Rock Creek:
    > hansen (huff_shares$ijmatrix, "communities", "locations", "S_j", "d_ij")
    Error in exists(as.character(substitute(od_dataset))) :
     first argument has length > 1
    Calls: hansen -> exists
    Execution halted
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc

Version: 3.0.2
Check: data for non-ASCII characters
Result: NOTE
     Note: found 8 marked UTF-8 strings
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-patched-solaris-x86, r-release-macos-x86_64, r-oldrel-macos-x86_64

Version: 3.0.2
Check: examples
Result: ERROR
    Running examples in ‘REAT-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: hansen
    > ### Title: Hansen accessibility
    > ### Aliases: hansen
    >
    > ### ** Examples
    >
    > # Example from Levy/Weitz (2009):
    > # Data for the existing and the new location
    > locations <- c("Existing Store", "New Store")
    > S_j <- c(5000, 10000)
    > location_data <- data.frame(locations, S_j)
    > # Data for the two communities (Rock Creek and Oak Hammock)
    > communities <- c("Rock Creek", "Oak Hammock")
    > C_i <- c(5000000, 3000000)
    > community_data <- data.frame(communities, C_i)
    > # Combining location and submarket data in the interaction matrix
    > interactionmatrix <- merge (community_data, location_data)
    > # Adding driving time:
    > interactionmatrix[1,5] <- 10
    > interactionmatrix[2,5] <- 5
    > interactionmatrix[3,5] <- 5
    > interactionmatrix[4,5] <- 15
    > colnames(interactionmatrix) <- c("communities", "C_i", "locations", "S_j", "d_ij")
    > shoppingcenters1 <- interactionmatrix
    > huff_shares <- huff(shoppingcenters1, "communities", "locations", "S_j", "d_ij")
    Huff Model
    
    Summary:
    2 locations with mean attractivity = 7500
    2 origins with mean transport costs = 8.75
    Attractivity weighting (pow) with Gamma = 1
    Distance weighting (pow) with Lambda = -2
    
    Interaction matrix
     communities C_i locations S_j d_ij U_ij sum_U_ij p_ij
    2 Oak Hammock 3e+06 Existing Store 5000 5 200.00000 244.4444 0.8181818
    4 Oak Hammock 3e+06 New Store 10000 15 44.44444 244.4444 0.1818182
    1 Rock Creek 5e+06 Existing Store 5000 10 50.00000 450.0000 0.1111111
    3 Rock Creek 5e+06 New Store 10000 5 400.00000 450.0000 0.8888889
    > # Market shares of the new location:
    > huff_shares$ijmatrix[huff_shares$ijmatrix$locations == "New Store",]
     communities C_i locations S_j d_ij U_ij sum_U_ij p_ij
    4 Oak Hammock 3e+06 New Store 10000 15 44.44444 244.4444 0.1818182
    3 Rock Creek 5e+06 New Store 10000 5 400.00000 450.0000 0.8888889
    > # Hansen accessibility for Oak Hammock and Rock Creek:
    > hansen (huff_shares$ijmatrix, "communities", "locations", "S_j", "d_ij")
    Error in exists(as.character(substitute(od_dataset))) :
     first argument has length > 1
    Calls: hansen -> exists
    Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-ix86+x86_64