I was trying to recreate this kind of timeline plot:
http://www.vertex42.com/ExcelArticles/create-a-timeline.html
As you can see in their excel example, the events are nicely placed out on
both sides of the timeline axis.
AFAIK there is no function to do this nicely in R-project. Furthermore,
gra
On Fri, Jun 11, 2010 at 11:30 AM, Henrik Bengtsson
wrote:
> Isn't this what source(..., chdir=TRUE) is for? See help(source).
>
>
not really. Imagine you give someone a script, but you have no control over
where and how they run it. They shouldn't be required to put in the chdir
parameter.
Say,
Charles' hint was what I was looking for. Thanks!
mg.
On Fri, Jun 11, 2010 at 7:40 AM, Charles C. Berry wrote:
>
>
> cat("print(eval(sys.calls()[[1]][[2]]))",file='test.R')
>>
>
>>
>>
> See
>
>?sys.calls
>
>
[[alternative HTML version deleted]]
__
AFAIK a script run through source() does not have any legit way to learn
about it's own location.
I need this to make sure that the script will find its datafiles after I
move the whole directory. (The datafiles are in the same directory.)
Here is a hack I invented to work around it:
print(getwd
4 matches
Mail list logo