Re: [R] installation problem on Ubuntu
LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH source ~/.bash_profile I still get the same error. On Thu, Apr 21, 2016 at 7:45 PM, David Winsemius <dwinsem...@comcast.net> wrote: > > > On Apr 21, 2016, at 1:23 PM, Paul Tremblay <paulhtremb...@gmail.com> > wrote: > > > > I was able to install the curl library with no problems. However, when I > > tried to install ggplot (install.packages("ggplot2")), I got the same > > message as earlier, that R can't load internet.so. > > Is the libcurl directory in your search path? > > David. > > > > Thanks for your help! > > > > On Wed, Apr 20, 2016 at 1:24 PM, Tom Wright <t...@maladmin.com> wrote: > > > >> apt-get install curl libcurl4-openssl-dev > >> > >> On Wed, 2016-04-20 at 09:36 -0700, Paul Tremblay wrote: > >>> I needed to update R so I could install ggplot. I am running Ubuntu > >> 12.04. > >>> I cannot upgrade Ubuntu because I am using a work computer. > >>> > >>> I tried upgrading the normal way: > >>> > >>> sudo apt-get update > >>> sudo apt-get install r-base r-base-dev > >>> > >>> But this only installed an earlier version. Finally I tried installing > >> from > >>> source (./configure, Make install). This worked. However, when I try to > >>> install packages, I get this error: > >>> > >>> Error in download.file(url, destfile = f, quiet = TRUE) : > >>> internet routines cannot be loaded > >>> In addition: Warning message: > >>> In download.file(url, destfile = f, quiet = TRUE) : > >>> unable to load shared object '/usr/local/lib/R/modules//internet.so': > >>> /usr/local/lib/R/modules//internet.so: undefined symbol: > >> curl_multi_wait > >>> > >>> > >>>>> ls /usr/local/lib/R/modules/ > >>>>> R_X11.so R_de.so internet.so lapack.so > >>> > >>> Thanks! > >>> > >>> P > >>> > >>> [[alternative HTML version deleted]] > >>> > >>> __ > >>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > >>> https://stat.ethz.ch/mailman/listinfo/r-help > >>> PLEASE do read the posting guide > >> http://www.R-project.org/posting-guide.html > >>> and provide commented, minimal, self-contained, reproducible code. > >> > >> > >> > > > > [[alternative HTML version deleted]] > > > > __ > > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code. > > David Winsemius > Alameda, CA, USA > > [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] installation problem on Ubuntu
I was able to install the curl library with no problems. However, when I tried to install ggplot (install.packages("ggplot2")), I got the same message as earlier, that R can't load internet.so. Thanks for your help! On Wed, Apr 20, 2016 at 1:24 PM, Tom Wright <t...@maladmin.com> wrote: > apt-get install curl libcurl4-openssl-dev > > On Wed, 2016-04-20 at 09:36 -0700, Paul Tremblay wrote: > > I needed to update R so I could install ggplot. I am running Ubuntu > 12.04. > > I cannot upgrade Ubuntu because I am using a work computer. > > > > I tried upgrading the normal way: > > > > sudo apt-get update > > sudo apt-get install r-base r-base-dev > > > > But this only installed an earlier version. Finally I tried installing > from > > source (./configure, Make install). This worked. However, when I try to > > install packages, I get this error: > > > > Error in download.file(url, destfile = f, quiet = TRUE) : > > internet routines cannot be loaded > > In addition: Warning message: > > In download.file(url, destfile = f, quiet = TRUE) : > > unable to load shared object '/usr/local/lib/R/modules//internet.so': > > /usr/local/lib/R/modules//internet.so: undefined symbol: > curl_multi_wait > > > > > > >> ls /usr/local/lib/R/modules/ > > >> R_X11.so R_de.so internet.so lapack.so > > > > Thanks! > > > > P > > > > [[alternative HTML version deleted]] > > > > __ > > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code. > > > [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] installation problem on Ubuntu
I needed to update R so I could install ggplot. I am running Ubuntu 12.04. I cannot upgrade Ubuntu because I am using a work computer. I tried upgrading the normal way: sudo apt-get update sudo apt-get install r-base r-base-dev But this only installed an earlier version. Finally I tried installing from source (./configure, Make install). This worked. However, when I try to install packages, I get this error: Error in download.file(url, destfile = f, quiet = TRUE) : internet routines cannot be loaded In addition: Warning message: In download.file(url, destfile = f, quiet = TRUE) : unable to load shared object '/usr/local/lib/R/modules//internet.so': /usr/local/lib/R/modules//internet.so: undefined symbol: curl_multi_wait >> ls /usr/local/lib/R/modules/ >> R_X11.so R_de.so internet.so lapack.so Thanks! P [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] faster way to use filter this
I have the following (simplified) vectors: index <- c("shoe" "shirt" "fruit") cost <- c(100, 50, 2) data <- c("shirt", "shoe", "vegetable") I want my outcome to be: (50, 100, 0) (shirt => 50, shoe => 100, vegetable => not found, so 0) I have written the following function: for (i in custom_list) { + this_cost <- cost[index == i] + message(this_cost) + } This gives me (50, 100) I haven't figured out how to use the ifelse. But more importantly, I think there should be an easier, and faster way to do this with vectors? Thanks! Paul [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] Create a heat map with German postal codes
Hi, I am tasked with making a map of German postal codes for a few major cities in Germany. Each postal code will have a differnt color, depending on a metric. For simplicity, let's just use population density. This is what I have achieved so far for London (which I used as an example). I have been able to create a base map using the tutorials. I was able to import a shapefile of postal codes and display that on the map. I was able to create points on the map. What I am not able to do is color in each postal code according to density. The other problem I have is with actually creating a map that zooms in on the right area. I know you can limit the area with xlim and ylim, but I can't figure out sensible values for eacy of these parameters. I have not found a shapefile yet for German postal codes. Last, should I use worldmaps, or a more recent package such as ggmap or rworldmap? I have seen that worldmaps is very outdated. We have commercial software such as Tableau and Map Point (since discontinued) floating around here. Both of these software automatically map districts for US and London postal codes. However, I would like to use an open source solution if for no other reason than these commercial software might not work for other regions, and R seems better to extend for special cases. Thanks! Paul [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.