New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect path created for Rtools #201

Closed
jlaake opened this Issue Dec 5, 2012 · 6 comments

Comments

Projects
None yet
2 participants
@jlaake

jlaake commented Dec 5, 2012

devtools v0.8 sets the path to c:\rtools\bin\bin and c:\rtools\bin\gcc.. instead of c:\rtools\bin; c:\rtools\gcc..\bin

See detailed info below:

Sys.getenv("PATH")
[1] "C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\DLLShared;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\DLLShared;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\12.0\DLLShared;C:\Program Files (x86)\Roxio\OEM\AudioCore"
library(devtools)
Rtools not in path, but I'm adding it automatically :)
Warning messages:
1: In normalizePath(path.expand(path), winslash, mustWork) :
path[1]="c:\Rtools\bin/bin": The system cannot find the file specified
2: In normalizePath(path.expand(path), winslash, mustWork) :
path[2]="c:\Rtools\bin/gcc-4.6.3/bin": The system cannot find the path specified
Sys.getenv("PATH")
[1] "C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\DLLShared;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\DLLShared;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\12.0\DLLShared;C:\Program Files (x86)\Roxio\OEM\AudioCore;c:\Rtools\bin\bin;c:\Rtools\bin\gcc-4.6.3\bin"

SysInfo()
Error: could not find function "SysInfo"
Sys.Info()
Error: could not find function "Sys.Info"
Sys.info()
sysname release version nodename machine
"Windows" "7 x64" "build 7601, Service Pack 1" "JLAAKE" "x86"
login user effective_user
"jll1" "jll1" "jll1"
R.Version()
$platform
[1] "i386-w64-mingw32"

$arch
[1] "i386"

$os
[1] "mingw32"

$system
[1] "i386, mingw32"

$status
[1] ""

$major
[1] "2"

$minor
[1] "15.2"

$year
[1] "2012"

$month
[1] "10"

$day
[1] "26"

$svn rev
[1] "61015"

$language
[1] "R"

$version.string
[1] "R version 2.15.2 (2012-10-26)"

$nickname
[1] "Trick or Treat"

@hadley

This comment has been minimized.

Member

hadley commented Dec 6, 2012

Did you set any options when installing Rtools?

@jlaake

This comment has been minimized.

jlaake commented Dec 6, 2012

I just used the defaults. I'll remove Rtools and reinstall to see what it
is setting.

--jeff

On Thu, Dec 6, 2012 at 5:51 AM, hadley wickham notifications@github.comwrote:

Did you set any options when installing Rtools?


Reply to this email directly or view it on GitHubhttps://github.com//issues/201#issuecomment-11086078.

@hadley

This comment has been minimized.

Member

hadley commented Dec 6, 2012

Don't worry about reinstalling, I just wanted to know if you did something unusual.

Could you please give me the output of utils::readRegistry("SOFTWARE\\R-core\\Rtools", hive = "HLM", view = "32-bit") ?

@jlaake

This comment has been minimized.

jlaake commented Dec 6, 2012

utils::readRegistry("SOFTWARE\R-core\Rtools", hive = "HLM", view =
"32-bit")
Error in utils::readRegistry("SOFTWARE\R-core\Rtools", hive = "HLM", :
Registry key 'SOFTWARE\R-core\Rtools' not found
I should explain that this is a Fed govt computer where they neuter
your prvileges to some degree. You can enter a password to get some level
of admin privilege but maybe it won't allow registry changes. Not sure.
Like I said earlier this is not my work computer and I was just using it as
a test bed. There will be lots of folks out there with a similar issue
however both fed, state and other organizations that don't allow full admin
privilege. That is why I use my personal computer and work outside the
system so I don't have this type of issue.

--jeff

On Thu, Dec 6, 2012 at 7:43 AM, hadley wickham notifications@github.comwrote:

Don't worry about reinstalling, I just wanted to know if you did something
unusual.

Could you please give me the output of utils::readRegistry("SOFTWARE\R-core\Rtools",
hive = "HLM", view = "32-bit") ?


Reply to this email directly or view it on GitHubhttps://github.com//issues/201#issuecomment-11090331.

@jlaake

This comment has been minimized.

jlaake commented Dec 6, 2012

This is what I get on my personal computer where everything works.

utils::readRegistry("SOFTWARE\R-core\Rtools", hive = "HLM", view =
"32-bit")
$Current Version
[1] "2.16"

$InstallPath
[1] "c:\Rtools"

$2.13
[1] ""

$2.14
[1] ""

$2.15
[1] ""

$2.16
[1] ""

On Thu, Dec 6, 2012 at 7:43 AM, hadley wickham notifications@github.comwrote:

Don't worry about reinstalling, I just wanted to know if you did something
unusual.

Could you please give me the output of utils::readRegistry("SOFTWARE\R-core\Rtools",
hive = "HLM", view = "32-bit") ?


Reply to this email directly or view it on GitHubhttps://github.com//issues/201#issuecomment-11090331.

@hadley

This comment has been minimized.

Member

hadley commented Dec 6, 2012

Thanks for that - I figured out it was a bug in the branch where the registry entry wasn't present (which isn't commonly tested).

@hadley hadley closed this in 61021a4 Dec 6, 2012

@lock lock bot locked and limited conversation to collaborators Sep 19, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.