ScPoEcon / ScPoEconometrics

Undergraduate textbook for Econometrics with R
https://ScPoEcon.github.io/ScPoEconometrics/
Other
142 stars 68 forks source link

library installation #101

Closed jimegon17 closed 5 years ago

jimegon17 commented 5 years ago

When installing the ScPoEconometrics library if (!require("devtools")) install.packages("devtools") library(devtools) install_github(repo = "ScPoEcon/ScPoEconometrics") the following error appears: package ‘colorspace’ successfully unpacked and MD5 sums checked Error: (converted from warning) cannot remove prior installation of package ‘colorspace’

Moreover, after running library(ScPoEconometrics) an error appears: Error in library(ScPoEconometrics) : there is no package called ‘ScPoEconometrics’

floswald commented 5 years ago

Can you please post sessionInfo() after you execute those commands?

On Wed 16 Jan 2019 at 17:18, jimegon17 notifications@github.com wrote:

When installing the ScPoEconometrics library if (!require("devtools")) install.packages("devtools") library(devtools) install_github(repo = "ScPoEcon/ScPoEconometrics") the following error appears: package ‘colorspace’ successfully unpacked and MD5 sums checked Error: (converted from warning) cannot remove prior installation of package ‘colorspace’

Moreover, after running library(ScPoEconometrics) an error appears: Error in library(ScPoEconometrics) : there is no package called ‘ScPoEconometrics’

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ScPoEcon/ScPoEconometrics/issues/101, or mute the thread https://github.com/notifications/unsubscribe-auth/AA-WdvTco1bezPrlVDVkdTaXjfnGPXGFks5vD1DxgaJpZM4aDbsB .

jimegon17 commented 5 years ago

Thank you for the fast response. I ran if (!require("devtools")) install.packages("devtools") library(devtools) install_github(repo = "ScPoEcon/ScPoEconometrics") sessionInfo() Output: R version 3.5.2 (2018-12-20) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] usethis_1.4.0 devtools_2.0.1 ggplot2_3.1.0 AER_1.2-6 survival_2.43-3 sandwich_2.5-0 [7] lmtest_0.9-36 zoo_1.8-4 car_3.0-2 carData_3.0-2

loaded via a namespace (and not attached): Error in x[["Version"]] : subscript out of bounds In addition: Warning message: In FUN(X[[i]], ...) : DESCRIPTION file of package 'colorspace' is missing or broken`

jimegon17 commented 5 years ago

After I reinstalled package 'colorspace', everything worked.

floswald commented 5 years ago

👍