Skip to content

grImport

0.9-7Package record

Importing Vector Graphics

2packages dependsuggested by 3
37.6Kdownloads / year
50.0%test coverage
12/13flavors OK

Overview

About

Functions for converting, importing, and drawing PostScript pictures in R plots.

Install

Health

CRAN checks
1ERROR12OK
Check messages
ERRORre-building of vignette outputsr-release-macos-arm64
Error(s) in re-building vignettes:
--- re-building ‘import.Rnw’ using Sweave
Loading required package: XML
sh: gs: command not found
Warning in system(paste(shQuote(gsexe), "-help > /dev/null")) :
  error in running command

Error: processing vignette 'import.Rnw' failed with diagnostics:
 chunk 5 (label = chesspiece) 
Error in PostScriptTrace("chess_game_01.fromInkscape.eps") : 
  sorry, 'gs' cannot be found

--- failed re-building 'import.Rnw'

--- re-building ‘importText.Rnw’ using Sweave
Loading required package: XML
sh: gs: command not found
Warning in system(paste(shQuote(gsexe), "-help > /dev/null")) :
  error in running command

Error: processing vignette 'importText.Rnw' failed with diagnostics:
 chunk 4 (label = simpleimport) 
Error in PostScriptTrace("hello.ps", "hello.xml") : 
  sorry, 'gs' cannot be found

--- failed re-building 'importText.Rnw'

SUMMARY: processing the following files failed:
  ‘import.Rnw’ ‘importText.Rnw’

Error: Vignette re-building failed.
Execution halted
ERRORtestsr-release-macos-arm64
Running ‘testpage.R’ [0s/0s]
Running the tests in ‘tests/testpage.R’ failed.
Complete output:
  > #######################################
  > # Produce testpage.ps from R 
  > #######################################
  > 
  > require(grid)
  Loading required package: grid
  > 
  > # A star polygon which is filled differently
  > # by non-zero winding rule and even-odd fill
  > star <- function(lab, gp=gpar(fill="black", lwd=1)) {
  +     grid.text(lab, y=unit(1, "npc"), just="bottom")
  +     pushViewport(viewport(xscale=c(-1, 1),
  +                           yscale=c(-1, 1)))
  +     t <- seq(0, 2*pi, length=6)[-6]
  +     x <- cos(t)
  +     y <- sin(t)
  +     grid.polygon(x[c(1, 4, 2, 5, 3)],
  +                  y[c(1, 4, 2, 5, 3)],
  +                  default="native",
  +                  gp=gp)
  +     popViewport()
  + }
  > 
  > postscript("testpage.ps", horiz=FALSE)
  > # grid.newpage()
  > pushViewport(viewport(layout=grid.layout(6, 5,
  +                         heights=u
...[truncated]...
 eofill def and
  > # change one of the fills to eofill
  > testpageps <- readLines("testpage.ps")
  > p3line <- grep("^/p3", testpageps)
  > testpageps[p3line] <-
  +     paste(testpageps[p3line],
  +           "\n/p4 { gsave bg eofill grestore stroke } def")
  > fillline <- grep(" p3$", testpageps)
  > testpageps[fillline[1]] <- gsub(" p3$", " p4", testpageps[fillline[1]])
  > writeLines(testpageps, "testpage.ps")
  >           
  > 
  > 
  > #######################################
  > # Now import testpage.ps and draw it in various ways
  > #######################################
  > 
  > require(grImport)
  Loading required package: grImport
  Loading required package: XML
  > 
  > PostScriptTrace("testpage.ps", "testpage.xml")
  sh: gs: command not found
  Error in PostScriptTrace("testpage.ps", "testpage.xml") : 
    sorry, 'gs' cannot be found
  In addition: Warning message:
  In system(paste(shQuote(gsexe), "-help > /dev/null")) :
    error in running command
  Execution halted

CRAN check page ↗

Slowest check: 2.1 min · r-devel-windows-x86_64
Status changes
  • ERROR12 OK, 1 ERRORNow
  • ERROR13 OK, 1 ERROR2026-03-10
Advisories

none known

Documentation

In release 0.9-7
READMENoVignettesYes · 2 · dynamicNEWSNoCitation fileYes · cites a publicationWebsiteYes
Cites a JSS article
Help pages
17
Examples that run
no examples
Exported functions with examples
0%
Documented parameters
95%
Return-value docs
60%
Help pages citing references
6%

Downloads

37.6K
CRAN downloads in the past year
Rank #2,426 · ~103/day · ~3.1K/mo
Daily download trend is not available in this view yet.
2.5K30 days
6.8K90 days
37.6K1 year
Compare downloads with other packages →
Also on284 r2u139 autocran3.6K conda_forge176 bioconda72 c2d4u

Repository

PracticesBeta

Repository r-forge.r-project.org/projects/grimport is linked, but repository-practices checks have not run for it yet. Checks are GitHub-only for now.

How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
2 external dependencies (excludes base and recommended)

Installing grImport adds 1 package (1 with compiled code, 937 KB of source tarballs). Heaviest: XML 937 KB.

Depends (6)
R >= 3.0.0methodsgrDevicesgraphicsgridXML
Imports (0)
none
LinkingTo (0)
none
Suggests (4)
latticeclustercolorspacesurvival
Enhances (0)
none
Reverse dependencies
2direct
0indirect
Imports 2
Suggested by 3
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (5)
Author, Maintainer since 0.1 (2006)
Author · added in 0.9-0
Contributor · added in 0.9-7
Contributor · added in 0.9-7
Contributor · added in 0.9-0
Listed in earlier versions (1)
Richard Walton.
no longer listed · 0.1 to 0.8-4
Releases (36)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 0.9-7Latest
    record
    2023-03-09 · current release · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.9-5
    record
    2021-11-01 · diff ↗
  • 0.9-4
    record
    2021-10-11 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • 0.9-3
    record
    2019-11-27 · diff ↗
  • 0.9-2
    record
    2019-05-14 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 0.9-1.1
    record
    2019-01-05 · diff ↗
  • 0.9-1
    record
    2018-06-18 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
Show 47 earlier eventsHide 47 earlier events

Package metadata

First published
2006-06-19
Total releases
36 / 20 yrs
License
GPL (>= 2) OSI
Minimum R
≥ 3.0.0
Download size
886 KB

Cite

Cite this package

Run in R for the authors' entry:

citation("grImport")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.18637/jss.v030.i04.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for grImport version 0.9-7 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy