package 'socviz' does not load in R microsoft open 3.5.1


#1

Trying to install 'socviz' from kjhealy Github repository. See install and load log below. Toward the end, there is an error message:
Error: unexpected input in "OSGEO4W_ROOT=C:"
Execution halted
ERROR: loading failed

  • removing 'C:/Users/Bruce Nelson/Documents/R/win-library/3.5/socviz'

Note that this is R microsoft open and that there is also a space in the pathname to my package directory

Here is the full log from installation command to error message:

> library(devtools)
> install_github("kjhealy/socviz")
Downloading GitHub repo kjhealy/socviz@master
from URL https://api.github.com/repos/kjhealy/socviz/zipball/master
Installing socviz
"C:/PROGRA~1/MICROS~2/ROPEN~1/R-3.5.1/bin/x64/R" --no-site-file --no-environ --no-save  \
  --no-restore --quiet CMD INSTALL "C:/Users/Bruce  \
  Nelson/AppData/Local/Temp/RtmpgxuJWG/devtools145011af6c80/kjhealy-socviz-60c2cc5"  \
  --library="C:/Users/Bruce Nelson/Documents/R/win-library/3.5" --install-tests 

* installing *source* package 'socviz' ...
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** testing if installed package can be loaded
ARGUMENT 'Nelson\AppData\Local\Temp\RtmpM7rzPd\Rin245c51a07cc0' __ignored__

Error: unexpected input in "OSGEO4W_ROOT=C:\"
Execution halted
ERROR: loading failed
* removing 'C:/Users/Bruce Nelson/Documents/R/win-library/3.5/socviz'
In R CMD INSTALL
Installation failed: Command failed (1)

#2

SOLVED: See the two lines (from the log above):
--no-restore --quiet CMD INSTALL "C:/Users/Bruce
Nelson/AppData/Local/Temp/RtmpgxuJWG/devtools145011af6c80/kjhealy-socviz-60c2cc5"

This suggested to me that the problem was the space in my user name (Bruce Nelson), a conclusion reinforced by the later two lines that say the portion of the pathname starting with ' Nelson' was ignored:

** testing if installed package can be loaded
ARGUMENT 'Nelson\AppData\Local\Temp\RtmpM7rzPd\Rin245c51a07cc0' ignored

So I enter Windwows as another user with a single name (no space in the path) and installed all required packages (my_packages) and then ran the command:
devtools::install_github("kjhealy/socviz")

Here is the log of the successful install of socviz, using Microsoft R-open 3.5.1:

  • installing source package 'socviz' ...
    ** R
    ** data
    *** moving datasets to lazyload DB
    ** inst
    ** byte-compile and prepare package for lazy loading
    ** help
    *** installing help indices
    *** copying figures
    ** building package indices
    ** testing if installed package can be loaded
  • DONE (socviz)
    In R CMD INSTALL

closed #3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.