The R Project SVN R

Rev

Rev 54787 | Rev 54801 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 54787 Rev 54789
Line -... Line 1...
-
 
1
% File src/library/utils/man/sourceutils.Rd
-
 
2
% Part of the R package, http://www.R-project.org
-
 
3
% Copyright 2011 R Core Development Team
-
 
4
% Distributed under GPL 2 or later
-
 
5
 
1
\name{sourceutils}
6
\name{sourceutils}
2
\alias{getSrcFilename}
7
\alias{getSrcFilename}
3
\alias{getSrcDirectory}
8
\alias{getSrcDirectory}
4
\alias{getSrcref}
9
\alias{getSrcref}
5
\alias{getSrcLocation}
10
\alias{getSrcLocation}
Line 61... Line 66...
61
fn <- function(x) {
66
fn <- function(x) {
62
  x + 1 # A comment, kept as part of the source
67
  x + 1 # A comment, kept as part of the source
63
}			    
68
}			    
64
 
69
 
65
# Show the temporary file directory
70
# Show the temporary file directory
-
 
71
# where the example was saved
-
 
72
 
66
getSrcDirectory(fn, full=TRUE)  
73
getSrcDirectory(fn)  
67
getSrcLocation(fn, "line")
74
getSrcLocation(fn, "line")
68
}
75
}
69
\keyword{ utilities }
76
\keyword{ utilities }