pkg_version <- tryCatch(as.character(packageVersion("RGraphSpace")), 
                        error = function(e) "x.x.x")
current_year <- format(Sys.Date(), "%Y")

bibentry(
  bibtype = "Manual",
  author = person("Sysbiolab Team"),
  title = "RGraphSpace: A lightweight interface between 'igraph' and 'ggplot2' graphics",
  year = current_year,
  note = paste0("R package version ", pkg_version, " (Doi: 10.32614/CRAN.package.RGraphSpace)"),
  url = "https://CRAN.R-project.org/package=RGraphSpace",
  textVersion = paste0("Sysbiolab Team (", current_year, "). RGraphSpace: A lightweight interface between 'igraph' and 'ggplot2' graphics. R package version ", pkg_version, ". Doi: 10.32614/CRAN.package.RGraphSpace")
)

