Permalink
Browse files

Merge pull request #30 from wch/find-env

Better method for finding install environment
  • Loading branch information...
hadley committed Jul 5, 2012
2 parents 66dedd4 + 1cfb09d commit f65de959b8e7f7c97590b4066215223374945675
Showing with 1 addition and 1 deletion.
  1. +1 −1 R/util.r
View
@@ -1,5 +1,5 @@
inst_path <- function() {
- envname <- environmentName(environment(inst_path))
+ envname <- environmentName(parent.env(environment()))
if (envname == "staticdocs") {
# Probably in package

0 comments on commit f65de95

Please sign in to comment.