Re: [R] using edit to extract codes from vignette failed

2014-09-09 Thread William Dunlap
;grid")) >>>> >>>>(edit is a method. It looks at the class of the first entry, name, to >>>>identify which method to use. See ?edit. You want it to use edit.vignette, >>>>so you need to drop 'file=' so you pass the vignette to edit

Re: [R] using edit to extract codes from vignette failed

2014-09-08 Thread Karl Ropkins
hod. It looks at the class of the first entry, name, to >>>identify which method to use. See ?edit. You want it to use edit.vignette, >>>so you need to drop 'file=' so you pass the vignette to edit as the first >>>argument or name=. Then edit will pass

Re: [R] using edit to extract codes from vignette failed

2014-09-08 Thread PO SU
gt;>>so you need to drop 'file=' so you pass the vignette to edit as the first >>>argument or name=. Then edit will pass it to edit.vignette and it'll work. >>>Or go direct: edit.vignette(vignette("grobs",package = "grid")). See >>>

Re: [R] using edit to extract codes from vignette failed

2014-09-08 Thread Duncan Murdoch
first argument or name=. Then edit will pass it to edit.vignette and it'll work. Or go direct: edit.vignette(vignette("grobs",package = "grid")). See ?vignette. Maybe the use of name as the first argument of a method is a little misleading? But you can work out what

Re: [R] using edit to extract codes from vignette failed

2014-09-08 Thread Duncan Murdoch
irst argument or name=. Then edit will pass it to edit.vignette and it'll work. Or go direct: edit.vignette(vignette("grobs",package = "grid")). See ?vignette. Maybe the use of name as the first argument of a method is a little misleading? But you can work out wha

Re: [R] using edit to extract codes from vignette failed

2014-09-08 Thread William Dunlap
t to edit.vignette and it'll work. Or >>go direct: edit.vignette(vignette("grobs",package = "grid")). See ?vignette. >>Maybe the use of name as the first argument of a method is a little >>misleading? But you can work out what is going if you work through the

Re: [R] using edit to extract codes from vignette failed

2014-09-08 Thread Duncan Murdoch
?vignette. Maybe the use of name as the first argument of a method is a little misleading? But you can work out what is going if you work through the help documentation.) > >Karl > > >Message: 9 >Date: Sun, 7 Sep 2014 17:06:44 +0800 (CST) >From: "PO SU" >To: "

Re: [R] using edit to extract codes from vignette failed

2014-09-08 Thread John McKown
On Mon, Sep 8, 2014 at 11:21 AM, PO SU wrote: > > Tks for correcting me not using the file argument, but the codes you supply > seem still not work. > > edit(vignette("grobs",package = "grid")) can't work. > I am using win7, the latest version of Rstudio which using R.3.1.1.The error > is: > Er

Re: [R] using edit to extract codes from vignette failed

2014-09-08 Thread PO SU
t; >Karl > > >Message: 9 >Date: Sun, 7 Sep 2014 17:06:44 +0800 (CST) >From: "PO SU" >To: "R. Help" >Subject: [R] using edit to extract codes from vignette failed >Message-ID: <4d3c1c8a.1c96.1484f5d8d31.coremail.rhelpmaill...@163.com> >Co

[R] using edit to extract codes from vignette failed

2014-09-08 Thread Karl Ropkins
oing if you work through the help documentation.) Karl Message: 9 Date: Sun, 7 Sep 2014 17:06:44 +0800 (CST) From: "PO SU" To: "R. Help" Subject: [R] using edit to extract codes from vignette failed Message-ID: <4d3c1c8a.1c96.1484f5d8d31.coremail.rhelpmaill...@163.co

Re: [R] using edit to extract codes from vignette failed

2014-09-07 Thread Uwe Ligges
On 07.09.2014 11:06, PO SU wrote: Dear expeRts, When i using the following code, i get a error as follows: edit(file=vignette("grobs",package = "grid")) I guess you want to edit(file = vignette("grobs", package = "grid")[["file"]]) ? Best, Uwe Ligges Error in edit.vignette(

[R] using edit to extract codes from vignette failed

2014-09-07 Thread PO SU
Dear expeRts,     When i using the following code, i get a error as follows:  edit(file=vignette("grobs",package = "grid")) Error in edit.vignette(file = vignette("grobs", package = "grid")) :    argument "name" is missing, with no default I investigated edit function, but still can't  get co