Closed HeidiSeibold closed 5 years ago
This will also make
$ R CMD INSTALL ggparty_0.0.0.9000.tar.gz
work.
Most current problems are due to problematic files or file names.
Tipps:
.travis.yml
Thanks for the tips! The problems caused by the files were cleared up. Running the test_that commands interactively seems to work, however, the command "devtools::check()" still throws an error for me, which I don't understand. The error states that there is no package called "partykit", even though I installed and loaded it. Here is what I get:
`> devtools::check() -- Building --------------------------------------------------------- ggparty -- Setting env vars:
√ checking for file 'C:\Users\Niyazu\Documents\GitHub\ggparty/DESCRIPTION' ...
-- Checking --------------------------------------------------------- ggparty -- Setting env vars:
package encoding: UTF-8 √ checking package namespace information √ checking package dependencies (749ms) √ checking if this is a source package ... √ checking if there is a namespace √ checking for .dll and .exe files √ checking for hidden files and directories √ checking for portable file names E checking whether package 'ggparty' can be installed (458ms) Installation failed. See 'C:/Users/Niyazu/AppData/Local/Temp/Rtmp0Qe4sM/ggparty.Rcheck/00install.out' for details.
See 'C:/Users/Niyazu/AppData/Local/Temp/Rtmp0Qe4sM/ggparty.Rcheck/00check.log' for details.
-- R CMD check results ---------------------------------------------------------------------------------------------- ggparty 0.0.0.9000 ---- Duration: 1.8s
checking whether package 'ggparty' can be installed ... ERROR See below...
-- Install failure --------------------------------------------------------------------------------------------------------------------------
1 error x | 0 warnings √ | 0 notes √`
Your package can't be installed. Please first make sure your package can be installed usign R CMD INSTALL package.tar.gz
after running R CMD build package
and/or devtools::install()
.
When I install the package (master branch) it seems to run R code, which it usually should not do:
A solution is to store code that just shows how the package works in folder inst
instead of R
(I think the problem is https://github.com/mmostly-harmless/ggparty/blob/master/R/presentation.R)
Also your DESCRIPTION file needs to specify that partykit and ggplot2 are dependencies.
For more infos see https://cran.r-project.org/doc/manuals/r-release/R-exts.html#The-DESCRIPTION-file
I currently get:
Please let me know if you need any help.