[R-pkg-devel] Package submission error
Zhian N. Kamvar
zk@mv@r @end|ng |rom gm@||@com
Fri Jan 15 17:03:10 CET 2021
There are two problems:
1. CRAN is flagging two words as misspelled (even though they are valid
words in the OED, which is notoriously perscriptive).
2. "Writes to user library" --- This is the violation; an example in
your package is trying to write to a folder in the user's library.
If you look at the check page:
https://cran-archive.r-project.org/web/checks/2021/2021-01-13_check_results_ftrCOOL.html
(linked on the archived page), you see this:
> dir = tempdir()
> PredDisdir<-system.file("testForder",package="ftrCOOL")
>
> PredDisdir<-paste0(PredDisdir,"/Disdir/")
> ad1<-paste0(dir,"/disorderB.txt")
>
>
mat<-DisorderB(PredDisdir,binaryType="strBin",outFormat="txt",outputFileDist=ad1)
Warning in file(con, "w") :
cannot open file
'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/ftrCOOL/extdata/tempTable.txt':
Read-only file system
Error in file(con, "w") : cannot open the connection
Calls: DisorderB -> readDisDir -> writeLines -> file
Execution halted
I think you can fix it by using tempfile() or tempdir() for the ad1 object.
Hope that helps,
Zhian
On 1/15/21 6:50 AM, sare ameri wrote:
> Hi Everyone,
>
> I hope this email finds you well.
>
> I get errors when submitting my package. I didn't get the error when I
> submitted the first version of my package.
>
> Here is the error:
>
> Package name: "ftrCOOL".
>
> Error message:
>
> Flavor: r-devel-windows-ix86+x86_64
> Check: CRAN incoming feasibility, Result: NOTE
> Maintainer: 'Sare Amerifar <sare.ameri.01 using gmail.com>'
>
> New submission
>
> Package was archived on CRAN
>
> Possibly mis-spelled words in DESCRIPTION:
> nucleotide (7:224)
> peptide (7:239)
>
> CRAN repository db overrides:
> X-CRAN-Comment: Archived on 2021-01-13 for policy violation.
>
> Writes to user library.
>
> Flavor: r-devel-linux-x86_64-debian-gcc
> Check: CRAN incoming feasibility, Result: NOTE
> Maintainer: 'Sare Amerifar <sare.ameri.01 using gmail.com>'
>
> New submission
>
> Package was archived on CRAN
>
> CRAN repository db overrides:
> X-CRAN-Comment: Archived on 2021-01-13 for policy violation.
>
> Writes to user library.
>
>
> Thanks for any suggestion.
>
> Have a nice day and Best,
> Sareh Ameri Far
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
More information about the R-package-devel
mailing list