[R] Unable to install packages in R: Error in if (any(diff)) { : missing .....

Agustin Navarro agustin.navarro at gmail.com
Wed Jul 5 01:03:49 CEST 2017


Unable to install packages in R: Error in if (any(diff)) { : missing value
where TRUE/FALSE needed

Sorry for my bad english

I need help in solving the following problem with R

When I try to install a package it end with the following error msg:


Error in if (any(diff)) { : missing value where TRUE/FALSE needed

the enviroment in windows 7 xp1 x64

R-3.4.1 was just installed

R was started with –vanilla and --verbose

a complete console log and Sys.getenv() follwos:

|*****************************************************************


c:\Program Files\R\R-3.4.1\bin\x64>R.exe --vanilla --verbose

'verbose' and 'quietly' are both true; being verbose then ..

now dyn.load("c:/Program
Files/R/R-3.4.1/library/methods/libs/x64/methods.dll") ...

Garbage collection 1 = 0+0+1 (level 2) ...

5.8 Mbytes of cons cells used (31%)

1.6 Mbytes of vectors used (25%)


R version 3.4.1 (2017-06-30) -- "Single Candle"

Copyright (C) 2017 The R Foundation for Statistical Computing

Platform: x86_64-w64-mingw32/x64 (64-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.


Natural language support but running in an English locale


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.


'verbose' and 'quietly' are both true; being verbose then ..

'verbose' and 'quietly' are both true; being verbose then ..

Garbage collection 2 = 1+0+1 (level 0) ...

7.4 Mbytes of cons cells used (39%)

3.7 Mbytes of vectors used (61%)

now dyn.load("c:/Program Files/R/R-3.4.1/library/utils/libs/x64/utils.dll")
...

'verbose' and 'quietly' are both true; being verbose then ..

now dyn.load("c:/Program
Files/R/R-3.4.1/library/grDevices/libs/x64/grDevices.dll") ...

'verbose' and 'quietly' are both true; being verbose then ..

Garbage collection 3 = 2+0+1 (level 0) ...

11.9 Mbytes of cons cells used (63%)

4.7 Mbytes of vectors used (78%)

now dyn.load("c:/Program
Files/R/R-3.4.1/library/graphics/libs/x64/graphics.dll") ...

'verbose' and 'quietly' are both true; being verbose then ..

now dyn.load("c:/Program Files/R/R-3.4.1/library/stats/libs/x64/stats.dll")
...

Garbage collection 4 = 3+0+1 (level 0) ...

13.1 Mbytes of cons cells used (70%)

4.9 Mbytes of vectors used (82%)

ending setup_Rmainloop(): R_Interactive = 1 {main.c}

>R_ReplConsole(): before "for(;;)" {main.c}

> install.packages("ctv")

Garbage collection 5 = 3+1+1 (level 1) ...

13.2 Mbytes of cons cells used (70%)

3.8 Mbytes of vectors used (62%)

Installing package into 'C:/Users/anp/Documents/R/win-library/3.4'

(as 'lib' is unspecified)

--- Please select a CRAN mirror for use in this session ---

now dyn.load("c:/Program Files/R/R-3.4.1/library/tools/libs/x64/tools.dll")
...

Garbage collection 6 = 4+1+1 (level 0) ...

14.8 Mbytes of cons cells used (79%)

4.2 Mbytes of vectors used (69%)

Garbage collection 7 = 4+2+1 (level 1) ...

15.8 Mbytes of cons cells used (85%)

6.0 Mbytes of vectors used (99%)

Garbage collection 8 = 4+2+2 (level 2) ...

15.8 Mbytes of cons cells used (64%)

6.0 Mbytes of vectors used (65%)

Garbage collection 9 = 5+2+2 (level 0) ...

16.1 Mbytes of cons cells used (65%)

7.9 Mbytes of vectors used (85%)

Garbage collection 10 = 5+3+2 (level 1) ...

16.1 Mbytes of cons cells used (65%)

7.9 Mbytes of vectors used (85%)

Garbage collection 11 = 5+3+3 (level 2) ...

16.1 Mbytes of cons cells used (51%)

8.0 Mbytes of vectors used (60%)

Garbage collection 12 = 6+3+3 (level 0) ...

16.1 Mbytes of cons cells used (51%)

9.7 Mbytes of vectors used (73%)

Garbage collection 13 = 6+4+3 (level 1) ...

16.2 Mbytes of cons cells used (51%)

9.9 Mbytes of vectors used (74%)

Garbage collection 14 = 7+4+3 (level 0) ...

17.3 Mbytes of cons cells used (55%)

10.3 Mbytes of vectors used (77%)

Garbage collection 15 = 8+4+3 (level 0) ...

18.4 Mbytes of cons cells used (58%)

11.3 Mbytes of vectors used (85%)

Garbage collection 16 = 8+5+3 (level 1) ...

17.9 Mbytes of cons cells used (56%)

11.1 Mbytes of vectors used (83%)

Garbage collection 17 = 8+5+4 (level 2) ...

16.3 Mbytes of cons cells used (51%)

7.5 Mbytes of vectors used (56%)

Garbage collection 18 = 9+5+4 (level 0) ...

17.8 Mbytes of cons cells used (56%)

9.8 Mbytes of vectors used (74%)

Garbage collection 19 = 9+5+5 (level 2) ...

16.5 Mbytes of cons cells used (52%)

6.6 Mbytes of vectors used (49%)

Garbage collection 20 = 10+5+5 (level 0) ...

16.5 Mbytes of cons cells used (52%)

9.7 Mbytes of vectors used (73%)

Garbage collection 21 = 10+6+5 (level 1) ...

16.5 Mbytes of cons cells used (52%)

9.6 Mbytes of vectors used (72%)

Garbage collection 22 = 10+6+6 (level 2) ...

17.2 Mbytes of cons cells used (54%)

8.5 Mbytes of vectors used (51%)

Garbage collection 23 = 11+6+6 (level 0) ...

17.6 Mbytes of cons cells used (55%)

8.7 Mbytes of vectors used (52%)

Garbage collection 24 = 12+6+6 (level 0) ...

18.7 Mbytes of cons cells used (59%)

9.6 Mbytes of vectors used (58%)

Garbage collection 25 = 13+6+6 (level 0) ...

19.4 Mbytes of cons cells used (61%)

9.9 Mbytes of vectors used (60%)

Garbage collection 26 = 14+6+6 (level 0) ...

19.4 Mbytes of cons cells used (61%)

9.9 Mbytes of vectors used (60%)

Garbage collection 27 = 15+6+6 (level 0) ...

20.0 Mbytes of cons cells used (63%)

12.0 Mbytes of vectors used (72%)

trying URL '
https://cran.revolutionanalytics.com/bin/windows/contrib/3.4/ctv_0.8-2.zip'

Content type 'application/zip' length 380910 bytes (371 KB)

downloaded 371 KB


Error in if (any(diff)) { : missing value where TRUE/FALSE needed

>R_ReplConsole(): before "for(;;)" {main.c}

> Sys.getenv()

ALLUSERSPROFILE C:\ProgramData

APPDATA C:\Users\anp\AppData\Roaming

asl.log Destination=file

CommonProgramFiles C:\Program Files\Common Files

CommonProgramFiles(x86)

C:\Program Files (x86)\Common Files

CommonProgramW6432 C:\Program Files\Common Files

COMPUTERNAME ABRIL

ComSpec C:\Windows\system32\cmd.exe

ConsoleZBaseDir C:\Program Files\ConsoleZ.x64.1.18.1.17087\

ConsoleZSettingsDir C:\Users\anp\AppData\Roaming\Console\

ConsoleZSnippetsDir C:\Users\anp\AppData\Roaming\Console\Snippets\

ConsoleZVersion 1.18.1.17087

FP_NO_HOST_CHECK NO

HOME C:\Users\anp\Documents

HOMEDRIVE C:

HOMEPATH \Users\anp

JD2_HOME C:\Users\anp\AppData\Local\JDownloader 2.0

LOCALAPPDATA C:\Users\anp\AppData\Local

LOGONSERVER \\ABRIL

NUMBER_OF_PROCESSORS 2

OS Windows_NT

PATH
C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program

Files\Intel\DMIX;C:\Program

Files\Calibre2\;C:\Program Files

(x86)\Skype\Phone\;C:\bin;C:\ProgramData\Anaconda3;C:\ProgramData\Anaconda3\Scripts;C:\ProgramData\Anaconda3\Library\bin;;C:\Program

Files (x86)\Microsoft VS Code\bin;C:\Program

Files (x86)\GnuWin32\bin;C:\bin;C:\Program

Files (x86)\Midnight Commander;

PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC

PROCESSOR_ARCHITECTURE

AMD64

PROCESSOR_IDENTIFIER Intel64 Family 6 Model 23 Stepping 6,

GenuineIntel

PROCESSOR_LEVEL 6

PROCESSOR_REVISION 1706

ProgramData C:\ProgramData

ProgramFiles C:\Program Files

ProgramFiles(x86) C:\Program Files (x86)

ProgramW6432 C:\Program Files

PROMPT $P$G

PSModulePath C:\Windows\system32\WindowsPowerShell\v1.0\Modules\

PUBLIC C:\Users\Public

R_ARCH /x64

R_COMPILED_BY gcc 4.9.3

R_HOME c:/PROGRA~1/R/R-34~1.1

R_LIBS_USER C:\Users\anp\Documents/R/win-library/3.4

R_USER C:\Users\anp\Documents

SESSIONNAME Console

SystemDrive C:

SystemRoot C:\Windows

TEMP C:\Users\anp\AppData\Local\Temp

TMP C:\Users\anp\AppData\Local\Temp

USERDOMAIN abril

USERNAME anp

USERPROFILE C:\Users\anp

windir C:\Windows

windows_tracing_flags 3

windows_tracing_logfile

C:\BVTBin\Tests\installpackage\csilogfile.log

>

	[[alternative HTML version deleted]]



More information about the R-help mailing list