Skip to content

[R-pkg-devel] Package submission error

4 messages · sare ameri, Michael Dewey, Cao, Xueyuan +1 more

#
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 at 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 at 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
#
Coments in-line
On 15/01/2021 14:50, sare ameri wrote:
That is only a note
You could mention that in the comments when you re-submit that these are 
correctly spelled.
Are you knowingly writing to a user library? If so, do not. If not 
explain to CRAN in your submission why you believe this is a false 
epositive.

  
    
  
#
Hi Sareh:

Package 'ftrCOOL' was removed from the CRAN repository.

Formerly available versions can be obtained from the archive.

Archived on 2021-01-13 for policy violation.

Bests,

Xueyuan

-----Original Message-----
From: R-package-devel <r-package-devel-bounces at r-project.org> On Behalf Of sare ameri
Sent: Friday, January 15, 2021 8:51 AM
To: r-package-devel at r-project.org
Subject: [Ext] [R-pkg-devel] Package submission error

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 at 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 at 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


______________________________________________
R-package-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
#
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: