[R-pkg-devel] how to provide an example for my package when I want to generate a figure

2021-04-13 Thread csmatyi
Hello all,

I have a fairly simple package I want to make. It takes two dataframes and then 
creates a jpeg (a heat map) based on the info in the dataframes.

I know how to put the code in the vignette.
But as to how to make an example, I don't know that. Would I put the code in 
the R code for the heat map?

How can I do this, it seems very foggy to me.

Thanks, Matthew

Sent with [ProtonMail](https://protonmail.com) Secure Email.
[[alternative HTML version deleted]]

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


[R-pkg-devel] error messages

2021-04-13 Thread csmatyi
Hello R package developers,

I tried sending in my package for the fifth time or so, but it still says that 
it has errors. I read the error messages but I cannot figure out what the error 
could be. Does anyone know?

Thanks, Matthew

--
Windows

* using log directory 'd:/RCompile/CRANincoming/R-devel/hybridogram.Rcheck'
* using R Under development (unstable) (2021-04-11 r80157)
* using platform: x86_64-w64-mingw32 (64-bit)
* using session charset: ISO8859-1
* checking for file 'hybridogram/DESCRIPTION' ... OK
* checking extension type ... Package
* this is package 'hybridogram' version '0.2.0'
* package encoding: UTF-8
* checking CRAN incoming feasibility ... NOTE
Maintainer: 'Matthew Cserhati <
csma...@protonmail.com
>'

New submission
* checking package namespace information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking if there is a namespace ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking serialization versions ... OK
* checking whether package 'hybridogram' can be installed ... OK
* checking installed package size ... OK
* checking package directory ... OK
* checking for future file timestamps ... OK
* checking 'build' directory ... OK
* checking DESCRIPTION meta-information ... OK
* checking top-level files ... OK
* checking for left-over files ... OK
* checking index information ... OK
* checking package subdirectories ... OK
* checking R files for non-ASCII characters ... OK
* checking R files for syntax errors ... OK
* loading checks for arch 'i386'
** checking whether the package can be loaded ... OK
** checking whether the package can be loaded with stated dependencies ... OK
** checking whether the package can be unloaded cleanly ... OK
** checking whether the namespace can be loaded with stated dependencies ... OK
** checking whether the namespace can be unloaded cleanly ... OK
** checking loading without being on the library search path ... OK
** checking use of S3 registration ... OK
* loading checks for arch 'x64'
** checking whether the package can be loaded ... OK
** checking whether the package can be loaded with stated dependencies ... OK
** checking whether the package can be unloaded cleanly ... OK
** checking whether the namespace can be loaded with stated dependencies ... OK
** checking whether the namespace can be unloaded cleanly ... OK
** checking loading without being on the library search path ... OK
** checking use of S3 registration ... OK
* checking dependencies in R code ... OK
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... [4s] OK
* checking for missing documentation entries ... OK
* checking installed files from 'inst/doc' ... OK
* checking files in 'vignettes' ... OK
* checking examples ... NONE
* checking for unstated dependencies in vignettes ... OK
* checking package vignettes in 'inst/doc' ... OK
* checking re-building of vignette outputs ... [1s] OK
* checking PDF version of manual ... OK
* checking for detritus in the temp directory ... OK
* DONE
Status: 1 NOTE

Debian

* using log directory ‘/srv/hornik/tmp/CRAN/hybridogram.Rcheck’
* using R Under development (unstable) (2021-04-12 r80161)
* using platform: x86_64-pc-linux-gnu (64-bit)
* using session charset: UTF-8
* checking for file ‘hybridogram/DESCRIPTION’ ... OK
* checking extension type ... Package
* this is package ‘hybridogram’ version ‘0.2.0’
* package encoding: UTF-8
* checking CRAN incoming feasibility ... NOTE
Maintainer: ‘Matthew Cserhati <
csma...@protonmail.com
>’

New submission
* checking package namespace information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking if there is a namespace ... OK
* checking for executable files ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking for sufficient/correct file permissions ... OK
* checking serialization versions ... OK
* checking whether package ‘hybridogram’ can be installed ... [0s/0s] ERROR
Installation failed.
See ‘/srv/hornik/tmp/CRAN/
hybridogram.Rcheck/00install.out
’ for details.
* DONE
Status: 1 ERROR, 1 NOTE
[[alternative HTML version deleted]]

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


[R-pkg-devel] creating a function that creates a figure

2021-04-28 Thread csmatyi
Hello all,

Normally, when you write a function in R, it returns a value. That way it is 
easy to write an .Rd file for this function.

However, I have written a function that does no such thing. Rather, it takes as 
input two data frames, and creates a figure. But doesn't return anything.

In R package language, how do I write the examples in the .R file when I need 
to define the input variable first as a data frame? I can't just write it as

add(1,2) which returns 3.

Any help?

Thanks so much,
Matthew

Sent with [ProtonMail](https://protonmail.com) Secure Email.
[[alternative HTML version deleted]]

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


[R-pkg-devel] pairwiseAlignment

2021-06-16 Thread csmatyi
Hello,

I am trying to align two sequences, in DNAString format using the R command 
pairwiseAlignment.
I keep getting this error:

pairwiseAlignment(si,sj)
Error in .Call2("XStringSet_align_pairwiseAlignment", pattern, subject,  :
  max(nchar(pattern) * nchar(subject)) is too big (must be <= 2147483647)

The 2 DNAstrings are si and sj, and are 108,007 bp and 120,698 bp long, 
respectively.

Can someone help me? Are the sequences too long perchance?

Thanks, Matthew

Sent with [ProtonMail](https://protonmail.com/) Secure Email.
[[alternative HTML version deleted]]

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


[R-pkg-devel] fviz_nbclust

2021-06-22 Thread csmatyi
Hello all,

I am having difficulty installing the factoextra package. I want to run the 
fviz_nbclust command.

Error message [truncated]:

The downloaded source packages are in
‘/tmp/RtmpXEQfNc/downloaded_packages’
Installation paths not writeable, unable to update packages
path: /usr/lib/R/library
packages:
boot, KernSmooth, MASS, Matrix, mgcv, nnet, spatial
Warning messages:
1: In .inet_warning(msg) :
installation of package ‘curl’ had non-zero exit status
2: In .inet_warning(msg) :
installation of package ‘rio’ had non-zero exit status
3: In .inet_warning(msg) :
installation of package ‘car’ had non-zero exit status
4: In .inet_warning(msg) :
installation of package ‘rstatix’ had non-zero exit status
5: In .inet_warning(msg) :
installation of package ‘FactoMineR’ had non-zero exit status
6: In .inet_warning(msg) :
installation of package ‘ggpubr’ had non-zero exit status
7: In .inet_warning(msg) :
installation of package ‘factoextra’ had non-zero exit status

I am using R version 3.6.3.

Thanks, Matthew

Sent with [ProtonMail](https://protonmail.com/) Secure Email.
[[alternative HTML version deleted]]

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