tylermorganwall / skpr

Generates and evaluates D, I, A, Alias, E, T, G, and custom optimal designs. Supports generation and evaluation of mixture and split/split-split/N-split plot designs. Includes parametric and Monte Carlo power evaluation functions. Provides a framework to evaluate power using functions provided in other packages or written by the user.
https://tylermorganwall.github.io/skpr/
GNU General Public License v3.0
115 stars 15 forks source link

Error message in design menu #41

Closed cegbuna closed 6 years ago

cegbuna commented 6 years ago

Great job for putting this package together.

I get the following error message in the

cannot open file '~/R/win-library/3.4/viridisLite/data/Rdata.rdb': No such file or directory

Not sure why I get the above error because I do have the specified file in the directory. Could you please provide a solution to rectifying this error?

I'm using Version 0.47.5 and don't get this error with older versions.

Thank you Emeka

tylermorganwall commented 6 years ago

Hi Emeka, Try deleting the folder viridisLite and un-installing and re-installing skpr. There might be an issue with permissions on your computer that this might fix. I found this link that could help:

https://stackoverflow.com/questions/42404992/error-in-getexportedvaluepkg-name-cannot-open-file-r-win-library-3-3-vir

Best regards, Tyler

cegbuna commented 6 years ago

Thanks for responding, Tyler.

I tried your recommendation and that from the link and still got the same error message.

Cheers, Emeka

tylermorganwall commented 6 years ago

What version of R do you have?

cegbuna commented 6 years ago

R: R-3.4.3 skpr: 0.47.5

Session info

R version 3.4.3 (2017-11-30)
Platform: i386-w64-mingw32/i386 (32-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    LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                           LC_TIME=English_United States.1252    

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

other attached packages:
[1] skpr_0.47.5 shiny_1.0.5

loaded via a namespace (and not attached):
 [1] readr_1.1.1       rvest_0.3.2       doParallel_1.0.11 rprojroot_1.3-2   lattice_0.20-35   pkgconfig_2.0.1   xml2_1.2.0        compiler_3.4.3   
 [9] stringr_1.3.0     rngtools_1.2.4    parallel_3.4.3    xtable_1.8-2      viridisLite_0.3.0 Rcpp_0.12.15      registry_0.5      plyr_1.8.4       
[17] httr_1.3.1        tools_3.4.3       rintrojs_0.2.0    nlme_3.1-131      rmarkdown_1.9     R6_2.2.2          knitr_1.20        scales_0.5.0     
[25] digest_0.6.15     evaluate_0.10.1   mime_0.5          Matrix_1.2-12     foreach_1.4.4     stringi_1.1.6     rstudioapi_0.7    backports_1.1.2  
[33] htmltools_0.3.6   hms_0.4.1         munsell_0.4.3     grid_3.4.3        colorspace_1.3-2  httpuv_1.3.6.2    rlang_0.2.0       kableExtra_0.8.0 
[41] magrittr_1.5      pkgmaker_0.22     splines_3.4.3     shinythemes_1.1.1 survival_2.41-3   yaml_2.1.17       doRNG_1.6.6       pillar_1.2.1     
[49] iterators_1.0.9   codetools_0.2-15  jsonlite_1.5      tibble_1.4.2

Funny Rstudio now crashes when I run skprGUIbrowser() and skprGUI()

tylermorganwall commented 6 years ago

Try installing the package devtools and installing skpr from here:

install.packages("devtools")
devtools::install_github("tylermorganwall/skpr")

If that doesn't work, update to the latest version of R (3.4.4) and try installing again.

cegbuna commented 6 years ago

I tried both methods and still getting the same error message. Very strange behavior

tylermorganwall commented 6 years ago

A possible solution is to change your R library folder out of the user directory and instead place it somewhere else on the C: drive (e.g. C:\R\win-library\3.4\ instead of '~/R/win-library/3.4/). Windows sometimes restricts access to third-party software in writing to the user directories.

tylermorganwall commented 6 years ago

Closing as a likely local installation issue.