inst/examples/GAppInfo.R

file <- gFileNewForCommandlineArg(uri_from_commandline)

uri <- file$getUri()
identical(uri, uri_from_commandline) # FALSE

if (file$hasUriScheme("cdda"))
  {
    ## do something special with uri
  }

Try the RGtk2 package in your browser

Any scripts or data that you put into this service are public.

RGtk2 documentation built on Oct. 14, 2021, 5:08 p.m.