I've been building, checking, and installing a package all day today with no errors. I have even been able to bring the package into R on my machine and use it all day doing test runs.
However, now, when I run Rcmd check, I get errors. Keep in mind not one thing has changed. I haven't touched any of the functions or .Rd files, yet I get the error below at this point and the package cannot be built. Why on earth would this error arise now when there were no problems at all. The log says the error is with the function choose.M which uses another function posterior. However, both of the functions work properly when I source them in to R. More importantly, they worked properly when I built the package an hour ago and brought the library into R. Created g:\MiscPsycho\chm\MiscPsycho.chm, 28,891 bytes Compression decreased file by 18,464 bytes. latex: not found adding MD5 sums * DONE (MiscPsycho) * checking package directory ... OK * checking for portable file names ... OK * checking DESCRIPTION meta-information ... OK * checking package dependencies ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for syntax errors ... OK * checking R files for library.dynam ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking Rd files ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * creating MiscPsycho-Ex.R ... OK * checking examples ... ERROR Running examples in MiscPsycho-Ex.R failed. The error most likely occurred in: > ### * choose.M > > flush(stderr()); flush(stdout()) > > ### Name: choose.M > ### Title: Constant Tuning > ### Aliases: choose.M > ### Keywords: misc > > ### ** Examples > > params <- list("3pl" = list(a = c(1,1), b = c(0, 1), c = c(0,0)), + "gpcm" = list(a = c(1,1), d = list(item1 = c(0 ,1,2,3,4), item2 = c(0,.5,1, 1.5)))) > choose.M(x = c(0,1,2,2), theta = -5, params = params, ind.dichot=c(1,2)) Error in posterior(x, theta, params, ind.dichot, ...) : couldn't find function "seq_along" Execution halted [[alternative HTML version deleted]] ______________________________________________ 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.