[R-pkg-devel] Svar: warning about object name and object not being used

Sanjeev Sariya @@njeev@@r|y@ @end|ng |rom gm@||@com
Sat Dec 24 15:44:57 CET 2022


Hello Kristian,

Thank you for your reply. That helps a lot.
Happy and safe Holidays.

--
Sanjeev M

On Thu, 22 Dec, 2022, 1:32 pm Kristian Hovde Liland, <
kristian.liland using nmbu.no> wrote:

> Hi Sanjeev,
>
>
>
> I do not think that R cares what name your data file has, only what name
> the object inside has. In your case you are documenting sample_chr21_vcf
> while R sees the object inside, vcf_data. In other words, you have
> documented something that is not included and not documented something that
> is included.
>
>
>
> I prefer having the same name for the data file and the object inside to
> avoid confusion.
>
>
>
> Best regards,
>
> Kristian
>
>
>
> *Fra: *R-package-devel <r-package-devel-bounces using r-project.org> på vegne
> av Sanjeev Sariya <sanjeevsariya using gmail.com>
> *Dato: *torsdag, 22. desember 2022 kl. 07:57
> *Til: *r-package-devel using r-project.org <r-package-devel using r-project.org>
> *Emne: *[R-pkg-devel] warning about object name and object not being used
>
> Hi there,
>
> I get two warnings:
>
> 1)
> I created a .rda file from a file. The file was read in a variable as
> vcf_data.
>
> Warning:
>
> Undocumented code objects:
>   'vcf_data'
> Undocumented data sets:
>   'vcf_data'
>
> I created object as:
>
> vcf_data <- vcfR::read.vcfR("sample_chr21.vcf", verbose=TRUE)
>
> save(*vcf_data*, file='data/sample_chr21_vcf.rda')
>
> I've a sample_chr21_vcf.Rd file in the man folder.
>
> How do I fix the warning about the variable name that was used to save
> a .rda file?
>
> 2)
>
> * checking for code/documentation mismatches ... WARNING
> Variables with usage in documentation object ‘sample_chr21_vcf’ but not in
> code:
>   ‘sample_chr21_vcf’
>
> I do not use this vcf file anywhere, not in any example.
>
> Github link:
>
> https://github.com/sariya/GARCOM/tree/new_test_hello
>
> Log link
>
>
> https://win-builder.r-project.org/incoming_pretest/GARCOM_1.2.2_20221222_073525/Debian/00check.log
>
> --
> Sanjeev M
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>

	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list