[R-pkg-devel] Difference between local R CMD check and winbuilder

2020-05-21 Thread Hongying Sun
Hello,

My package passed the R CMD check locally on my desktop with Windows
system, but not the winbuilder.   These are both done on R-4.0.0.

Does this happen to anyone else?

Here is the error:

* checking PDF version of manual ... WARNING
LaTeX errors when creating PDF version.
This typically indicates Rd problems.
LaTeX errors found:
! LaTeX Error: There's no line here to end.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H   for immediate help.
 ...
* checking PDF version of manual without hyperrefs or index ... ERROR




I also have difficulty install R-devel on my desktop.  Here is the error
message:

$ tar -xvzf R-devel.tar.gz
Library/Frameworks/R.framework/
Library/Frameworks/R.framework/PrivateHeaders
Library/Frameworks/R.framework/Resources
Library/Frameworks/R.framework/Versions/
Library/Frameworks/R.framework/R
tar: Library/Frameworks/R.framework/R: Cannot create symlink to
‘Versions/Current/R’: No such file or directory
Library/Frameworks/R.framework/Libraries
Library/Frameworks/R.framework/Headers
tar: Library/Frameworks/R.framework/Headers: Cannot create symlink to
‘Versions/Current/Headers’: No such file or directory
Library/Frameworks/R.framework/Versions/Current
Aborted (core dumped)


  I'm new to R and this is my first R package.   Please help.   Much
appreciated.

Thanks,
Hongying

[[alternative HTML version deleted]]

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


Re: [R-pkg-devel] Difference between local R CMD check and winbuilder

2020-05-21 Thread BATES Timothy
Different error report: but I’ve been getting an error reported from 
winbuilder, but no error/code failures revealed in the log…


Running examples in 'umx-Ex.R' failed
The error most likely occurred in:


…

[example code with no error showing in the code…]


Passes release checks fine on MacOS with R 4.0.0 So, hard to debug…

Best, tim

On 21 May 2020, at 20:14, Hongying Sun 
mailto:hongyingsun1...@gmail.com>> wrote:
Hello,
My package passed the R CMD check locally on my desktop with Windows
system, but not the winbuilder.   These are both done on R-4.0.0.

Does this happen to anyone else?

Here is the error:

* checking PDF version of manual ... WARNING
LaTeX errors when creating PDF version.
This typically indicates Rd problems.
LaTeX errors found:
! LaTeX Error: There's no line here to end.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H   for immediate help.
...
* checking PDF version of manual without hyperrefs or index ... ERROR

$ tar -xvzf R-devel.tar.gz
Library/Frameworks/R.framework/
Library/Frameworks/R.framework/PrivateHeaders
Library/Frameworks/R.framework/Resources
Library/Frameworks/R.framework/Versions/
Library/Frameworks/R.framework/R
tar: Library/Frameworks/R.framework/R: Cannot create symlink to
‘Versions/Current/R’: No such file or directory
Library/Frameworks/R.framework/Libraries
Library/Frameworks/R.framework/Headers
tar: Library/Frameworks/R.framework/Headers: Cannot create symlink to
‘Versions/Current/Headers’: No such file or directory
Library/Frameworks/R.framework/Versions/Current
Aborted (core dumped)

 I'm new to R and this is my first R package.   Please help.   Much appreciated.
The University of Edinburgh is a charitable body, registered in Scotland, with 
registration number SC005336.

[[alternative HTML version deleted]]

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


Re: [R-pkg-devel] Package submission failed with two warnings

2020-05-21 Thread FARSHAD TABASINEJAD
Hi all,

Thank you very much for all your great comments.
I followed the Gabor’s suggestion and didn’t receive any warnings or errors by 
testing the package on different platforms using rhub::check_for_cran(). 

Regards,
Farshad


From: Gábor Csárdi
Sent: Friday, May 15, 2020 3:58 PM
To: Max Turgeon
Cc: FARSHAD TABASINEJAD; Duncan Murdoch; r-package-devel@r-project.org
Subject: Re: [R-pkg-devel] Package submission failed with two warnings

The reason is that CRAN does not have an R-devel binary for
data.table, and because of this install.packages() decides not to
install it. Here is a workaround:
https://github.com/r-hub/rhub/issues/367#issuecomment-621757715

Gabor

On Fri, May 15, 2020 at 10:50 PM Max Turgeon  wrote:
>
> Hi Farshad,
>
>
> The error you get when compiling your vignette gives us a hint:
>
> Error: processing vignette 'Rpvt.Rmd' failed with diagnostics:
> package or namespace load failed for 'ggpubr' in loadNamespace(j <- i[[1L]], 
> c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
>  there is no package called 'data.table'
>
> There is a long chain of dependencies here: if I write A -> B to say that 
> package A lists package B as an Import (and therefore package B is loaded 
> when package A is attached), we have
>
>
> ggpubr -> rstatix -> car -> rio -> data.table.
>
>
> I think the issue is that, since you list ggpubr in "Suggests", there's never 
> a check that all its dependencies (and their dependencies etc) are installed, 
> and therefore data.table was not installed before checking your package. (But 
> I'm not sure exactly why ggpubr is installed but not all the dependencies.)
>
>
> A solution would be to make your whole vignette fail "gracefully" when ggpubr 
> isn't attached properly. Which is good practice anyway.
>
>
> Max Turgeon
> Assistant Professor
> Department of Statistics
> Department of Computer Science
> University of Manitoba
> maxturgeon.ca
>
>
> 
> From: R-package-devel  on behalf of 
> FARSHAD TABASINEJAD 
> Sent: May 15, 2020 4:11:36 PM
> To: Duncan Murdoch; r-package-devel@r-project.org
> Subject: Re: [R-pkg-devel] Package submission failed with two warnings
>
> 
> Caution: This message was sent from outside the University of Manitoba.
> 
>
> Hi Duncan,
>
> I changed the version, recreated the package, and then tested it with the 
> rhub::check_for_cran(). The function failed to create a summary for all the 
> platform results together, however individual results are available in the 
> following links.
>
>
> https://builder.r-hub.io/status/Rpvt_0.1.1.tar.gz-5e89b16f7bfb420ebe310a57eb8357b3
> https://artifacts.r-hub.io/Rpvt_0.1.1.tar.gz-5e89b16f7bfb420ebe310a57eb8357b3/
> https://artifacts.r-hub.io/Rpvt_0.1.1.tar.gz-2ee682316e0f4bc7b09faf7a9e46b670/
> https://builder.r-hub.io/status/original/Rpvt_0.1.1.tar.gz-08fc2dbd591f4d80b2e0049a7c8db8b8
>
> you can also find the source code in the following link:
> https://github.com/susaenergy/Rpvt
>
> Thank you for the help!
>
> Farshad
>
>
> From: Duncan Murdoch
> Sent: Friday, May 15, 2020 9:28 AM
> To: FARSHAD TABASINEJAD; r-package-devel@r-project.org
> Subject: Re: [R-pkg-devel] Package submission failed with two warnings
>
> For your first warning, see the CRAN policy:  "Updates to
> previously-published packages must have an increased version. Increasing
> the version number at each submission reduces confusion so is preferred
> even when a previous submission was not accepted."
>
> For the second, it's hard to say what's happening.  Is your package
> online somewhere so we could try it on different machines?
>
> Duncan Murdoch
>
> On 15/05/2020 12:46 a.m., FARSHAD TABASINEJAD wrote:
> > Dear R-package-devel experts,
> >
> > This is the first time I’m writing to this platform about a package I 
> > recently submitted to CRAN (my first package).
> > While the package is already available on CRAN, I still must fix a few 
> > warnings and one error as reported on the CRAN package check results page:
> > https://cran.r-project.org/web/checks/check_results_Rpvt.html
> >
> > I recently resubmitted a modified version of the package to CRAN, however, 
> > it didn’t pass the automatic incoming checks.
> >
> > Windows:  
> > https://win-builder.r-project.org/incoming_pretest/Rpvt_0.1.0_20200512_051950/Windows/00check.log
> > Status: 1 WARNING
> >
> > Debian:  
> > https://win-builder.r-project.org/incoming_pretest/Rpvt_0.1.0_20200512_051950/Debian/00check.log
> > Status: 2 WARNINGs
> >
> >
> > 1) The first warning that appears on both Windows and Debian results is 
> > “Insufficient package version (submitted: 0.1.0, existing: 0.1.0)”.
> >
> > Since the package is conditionally available on CRAN, do I need to modify 
> > the package version to 0.1.1 to get rid of this warning?
> > Is there any way to fix this problem with the current version of the 
> > package