Skip to content

Instantly share code, notes, and snippets.

@gourneau
Last active May 22, 2017 20:47
Show Gist options
  • Save gourneau/ae2ba93b89c6998d48224dd8b180b07c to your computer and use it in GitHub Desktop.
Save gourneau/ae2ba93b89c6998d48224dd8b180b07c to your computer and use it in GitHub Desktop.
Conda R package install error
(my-r-env)josh@desktop:~$ R
R version 3.2.2 (2015-08-14) -- "Fire Safety"
Copyright (C) 2015 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (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.
[Previously saved workspace restored]
> install.packages("qcc")
--- Please select a CRAN mirror for use in this session ---
Error in download.file(url, destfile = f, quiet = TRUE) :
unsupported URL scheme
Error: .onLoad failed in loadNamespace() for 'tcltk', details:
call: fun(libname, pkgname)
error: Can't find a usable init.tcl in the following directories:
/opt/anaconda1anaconda2anaconda3/lib/tcl8.5 ./lib/tcl8.5 ./lib/tcl8.5 ./library ./library ./tcl8.5.18/library ./tcl8.5.18/library
This probably means that Tcl wasn't installed properly
@gourneau
Copy link
Author

I also make sure to have these packages installed on Ubuntu

$ sudo apt-get install tk8.5 tcl8.5 tcl8.5-dev

@ruxi
Copy link

ruxi commented Jul 21, 2016

Any luck? Having same issue.

Apt-get installs the tcl in the global namespace so your env won't have access

@teichert
Copy link

This suggestion fixed a similar issue for me:
options(menu.graphics=FALSE)

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