Closed alexkrohn closed 8 months ago
I also get an error with this same solve.QP function when trying to install kinship2
from github.
This is probably unrelated to my original error, as that version of kinship2
was installed from CRAN, but still I made #35 to (I think!) fix the install_github
problem.
devtools::install_github(mayoverse/kinship2)
Downloading GitHub repo mayoverse/kinship2@HEAD
── R CMD build ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
✔ checking for file ‘/private/var/folders/bw/p5_hpq2n3kg5swb3x0g0ncp40000gn/T/RtmpPRIC58/remotes3cbc33b30e6a/mayoverse-kinship2-4fd94a1/DESCRIPTION’ ...
─ preparing ‘kinship2’:
✔ checking DESCRIPTION meta-information ...
Warning: alignped1.Rd:23: unknown macro '\item'
Warning: alignped1.Rd:30: unknown macro '\item'
Warning: alignped1.Rd:33: unknown macro '\item'
Warning: alignped1.Rd:46: unknown macro '\item'
Warning: alignped1.Rd:49: unknown macro '\item'
Warning: alignped3.Rd:31: unknown macro '\item'
Warning: alignped3.Rd:36: unknown macro '\item'
Warning: alignped4.Rd:32: unknown macro '\sum'
Warning: alignped4.Rd:35: unknown macro '\sum'
Warning: alignped4.Rd:35: unknown macro '\sum'
Warning: alignped4.Rd:35: unknown macro '\mu'
Warning: alignped4.Rd:35: unknown macro '\mu'
Warning: alignped4.Rd:49: unknown macro '\item'
Warning: alignped4.Rd:58: unknown macro '\item'
Warning: alignped4.Rd:59: unknown macro '\ge'
Warning: alignped4.Rd:61: unknown macro '\le'
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ looking to see if a ‘data/datalist’ file should be added
─ building ‘kinship2_1.9.7.tar.gz’
Installing package into ‘/opt/homebrew/lib/R/4.3/site-library’
(as ‘lib’ is unspecified)
* installing *source* package ‘kinship2’ ...
** using staged installation
** R
Error in parse(...) :
/private/var/folders/bw/p5_hpq2n3kg5swb3x0g0ncp40000gn/T/RtmpHGhsZV/R.INSTALL3d2368f43ec3/kinship2/R/alignped4.R:139:23: unexpected symbol
138: warning = function(w) {
139: message(Solve QP
^
ERROR: unable to collate and parse R files for package ‘kinship2’
* removing ‘/opt/homebrew/lib/R/4.3/site-library/kinship2’
* restoring previous ‘/opt/homebrew/lib/R/4.3/site-library/kinship2’
Warning message:
In i.p(...) :
installation of package ‘/var/folders/bw/p5_hpq2n3kg5swb3x0g0ncp40000gn/T//RtmpPRIC58/file3cbc30776baa/kinship2_1.9.7.tar.gz’ had non-zero exit status
Hi @alexkrohn, It effectively seems to be a complicated pedigree. This problem should have been solved in the new version of the kinship package but I've made a mistake that you've found. Sorry for the inconvenience. If you want the kinship package will be soon deprecated on CRAN and has been moved to Pedixplorer on BioConductor. Using it I achieve to plot the following:
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
# The following initializes usage of Bioc devel
BiocManager::install(version='devel')
BiocManager::install("Pedixplorer")
library("Pedixplorer")
ped_df <- readr::read_tsv("low-missing-pedigree-fixed.txt")
# Just a small change in the parameters and function name
ped.object <- with(ped_df, Pedigree(obj= id, dadid=sire, momid =dam, sex = sex.number))
plot(ped.object)
Thanks! This does seem to solve it. It's a bit of a bleeding edge solution as you have to upgrade to the dev version of R (4.4 currently), but it does solve the issue. Thanks for this! I look forward to future developments in Pedixplorer
Hi there,
I've plotted this pedigree by hand and don't see glaring inconsistencies, but for some reason I'm getting an error with
quadprog
when plotting this pedigree. Might this have to do with #27 from @LouisLeNezet ? I have usedkinship2
multiple times for similarly complex pedigrees without a problem. Unfortunately, it's very hard to traceback the error.Code, using the attached pedigree:
Error: