[Rd] Question of R CMD check
Duncan Murdoch
murdoch.duncan at gmail.com
Fri Apr 23 23:53:34 CEST 2010
On 23/04/2010 1:19 PM, rusers.sh wrote:
> Hi Duncan,
> Thanks for reminding me. See below for the error information from *.Rout
> file
> It seems that 'pkgname' was not found. I am not sure whether there is some
> problem with my functions or it is a little bug.
> Thanks a lot.
> #######
>
>> assign("ptime", proc.time(), pos = "CheckExEnv")
>> ## at least one package changes these via ps.options(), so do this
>> ## before loading the package.
>> ## Use postscript as incomplete files may be viewable, unlike PDF.
>> ## Choose a size that is close to on-screen devices, fix paper
>> grDevices::ps.options(width = 7, height = 7, paper = "a4", reset = TRUE)
>> grDevices::postscript(paste(pkgname, "-Ex.ps", sep=""))
>>
> Error in paste(pkgname, "-Ex.ps", sep = "") : object 'pkgname' not found
> Calls: <Anonymous> -> checkIntFormat -> gsub -> paste
> Execution halted
>
The very first line of stam-Ex.R should be
pkgname <- "stam"
Is it? If not, I'd like to see the package; could you send me a copy?
If it is, then something in one of your examples is messing with it. Do
you have any calls to rm() or remove() in your examples?
Duncan Murdoch
> 2010/4/23 Duncan Murdoch <murdoch.duncan at gmail.com>
>
>
>> On 21/04/2010 9:48 PM, rusers.sh wrote:
>>
>>
>>> Hi all,
>>> Today, i just installed the newest R version 2.10.1 and other necessary
>>> tools for building R package under windows,e.g. Rtools, perl. All are the
>>> newest version.
>>> After the correct configuration under windows (configuration should be
>>> correct), i use it to re-check my old package. I found the following
>>> prolem
>>> when checking EXAMPLEs in each function, which did not exist before this
>>> re-installation.
>>> ########
>>> * checking examples ... ERROR
>>> Running examples in 'stam-Ex.R' failed.
>>> ########
>>> I used "\dontrun{} % enddontrun" in all the examples of my functions that
>>> should be no problem, i think. I checked my package before and did not
>>> find
>>> errors. I also browsed the checking results in 'stam-Ex.R'. It listed all
>>> the example codes in that file, something like this,
>>> cleanEx(); nameEx("stcdt")
>>> ### * stcdt
>>> flush(stderr()); flush(stdout())
>>> ###example codes
>>>
>>> I did not met this problem before. Any ideas on solving this?
>>> Thanks a lot.
>>>
>>>
>>>
>>>
>> You need to show us the end of the stam-Ex.Rout file. It will contain the
>> error message.
>>
>> Duncan Murdoch
>>
>>
>>
>
>
>
More information about the R-devel
mailing list