I have modified a C function in the `phmm` package. Now I want to rebuild the package, but the following error occurred. How can I fix the error?
$ cd ~/Desktop/phmmw $ R CMD build phmm * checking for file ‘phmm/DESCRIPTION’ ... OK * preparing ‘phmm’: * checking DESCRIPTION meta-information ... OK * cleaning src * installing the package to re-build vignettes ----------------------------------- * installing *source* package ‘phmm’ ... ** libs *** arch - x86_64 gcc-4.2 -arch x86_64 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/usr/local/include -fPIC -g -O2 -c arms.c -o arms.o make: gcc-4.2: No such file or directory make: *** [arms.o] Error 1 ERROR: compilation failed for package ‘phmm’ * removing ‘/private/var/folders/r0/9qv15p6j59j6jtfq775k6j380000gn/T/RtmpIPgvDE/Rinst48317ea7/phmm’ ----------------------------------- ERROR: package installation failed -- View this message in context: http://r.789695.n4.nabble.com/error-in-R-CMD-build-when-editing-c-function-in-R-package-tp4343619p4343619.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.