fdschneider / caspr

Cellular Automata for Spatial Pressure in R
MIT License
4 stars 0 forks source link

Error in building caspr package in Windows 8 x64 #44

Open xyzxyz88 opened 8 years ago

xyzxyz88 commented 8 years ago

When building caspr package using devtools package (install.packages("devtools"); devtools::install_github("fdschneider/caspr")), a error appears like,

Error in parse(outFile) : invalid multibyte character in parser at line 87 ERROR: unable to collate and parse R files for package 'caspr'

What is wrong with this? How to resolve this problem? I will be grateful to your helps.

Other information are listed as following,

Downloading GitHub repo fdschneider/caspr@master from URL https://api.github.com/repos/fdschneider/caspr/zipball/master Installing caspr "Z:/program/R-3.3.1/bin/x64/R" --no-site-file --no-environ --no-save \ --no-restore --quiet CMD INSTALL \ "C:/Users/chenning/AppData/Local/Temp/RtmpCoipC1/devtools1f88441642bd/fdschneider-caspr-e191c7c" \ --library="Z:/program/R-3.3.1/library" --install-tests

fdschneider commented 7 years ago

Thanks for your interest in the package! Sorry it took my so long to answer this. Please get back, if you got it to work in the meantime!

I am not exactly sure what causes this error, but it seems that there is a problem with installing the Rcpp dependency. try installing the Rcpp package before installing caspr.

install.packages("Rcpp")