Skip to content
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

C:/Program is not recognized as an internal or external command another type of #885 #1609

Closed
wldnjs opened this issue Sep 12, 2017 · 4 comments

Comments

@wldnjs
Copy link

wldnjs commented Sep 12, 2017

Hello,@hadley.

I got error about install_github() which returned "'C:/Program' is not recognized as an internal or external command..."
I think this is similar case with #885, but there is some different errors.

Below are the my result of codes in #885 .

#when Starting
R version 3.3.3 (2017-03-06) -- "Another Canoe"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: i386-w64-mingw32/i386 (32-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

Error installing package: 'C:\Program'��(��) ���� �Ǵ� �ܺ� ����, ������ �� �ִ� ���α׷�, �Ǵ�
��ġ ������ �ƴմϴ�.

Error installing package: 'C:\Program'��(��) ���� �Ǵ� �ܺ� ����, ������ �� �ִ� ���α׷�, �Ǵ�
��ġ ������ �ƴմϴ�.
#when Starting
#------------------------------------------------------------------------------------------------------------------
> file.path(R.home("bin"), "R")
[1] "C:/Program Files/R/R-3.3.3/bin/i386/R"
Warning message:
R graphics engine version 11 is not supported by this version of RStudio. The Plots tab will be disabled until a newer version of RStudio is installed. 
> normalizePath(file.path(R.home("bin"), "R"))
[1] "C:\\Program Files\\R\\R-3.3.3\\bin\\i386\\R"
Warning message:
In normalizePath(path.expand(path), winslash, mustWork) :
  path[1]="C:/Program Files/R/R-3.3.3/bin/i386/R": 지정된 파일을 찾을 수 없습니다
> normalizePath(R.home("bin"))
[1] "C:\\Program Files\\R\\R-3.3.3\\bin\\i386"
> Sys.getenv("R_HOME")
[1] "C:/Program Files/R/R-3.3.3"
> shortPathName(R.home("bin"))
[1] "C:\\Program Files\\R\\R-3.3.3\\bin\\i386"
> #####
> if (file.exists("~/.Rprofile"))
+ readLines("~/.Rprofile")
> if (file.exists("~/.Renviron"))
+ readLines("~/.Renviron")
> Sys.getenv()[grep("^R_", names(Sys.getenv()))]
R_ARCH                     /i386
R_COMPILED_BY              gcc 4.9.3
R_DOC_DIR                  C:/Program Files/R/R-3.3.3/doc
R_HOME                     C:/Program Files/R/R-3.3.3
R_LIBS_USER                C:/Users/user/Documents/R/win-library/3.3
R_USER                     C:/Users/user/Documents
> library(devtools)
> install()
Error: Could not find package root.
> debug(system)
> install()
Error: Could not find package root.
> install_github()
Error in lapply(repo, github_remote, username = username, ref = ref, subdir = subdir,  : 
  argument "repo" is missing, with no default
> library(devtools)
> debug(system)
> install()
Error: Could not find package root.
> Sys.getenv("R_HOME")
[1] "C:/Program Files/R/R-3.3.3"
> shortPathName(R.home("bin"))
[1] "C:\\Program Files\\R\\R-3.3.3\\bin\\i386"
> session_info()
Error in loadNamespace(name) : there is no package called ‘rstudio’
> sessionInfo()
R version 3.3.3 (2017-03-06)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows 7 (build 7601) Service Pack 1

locale:
[1] LC_COLLATE=Korean_Korea.949  LC_CTYPE=Korean_Korea.949    LC_MONETARY=Korean_Korea.949
[4] LC_NUMERIC=C                 LC_TIME=Korean_Korea.949    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] devtools_1.13.2

loaded via a namespace (and not attached):
[1] tools_3.3.3    withr_1.0.2    rstudioapi_0.6 memoise_1.1.0  digest_0.6.12 
> library(devtools)
> 
> debug(system)
> install()
Error: Could not find package root.
> 
> # Should be at the Browser prompt now
> command
Error: object 'command' not found
> Encoding(command)
Error in Encoding(command) : object 'command' not found
> dput(charToRaw(command))
Error in charToRaw(command) : object 'command' not found
#-----------------------------------------------------------------------------------------------------------------
@hongooi73
Copy link

This looks like the same issue as #1514.

@jimhester
Copy link
Member

As mentioned in #1514 this stems from bug(s) in R which should be fixed in R-devel.

@jimhester
Copy link
Member

If possible a workaround is to install R and Rtools into directory paths without spaces.

@lock
Copy link

lock bot commented Sep 17, 2018

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

@lock lock bot locked and limited conversation to collaborators Sep 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants