0
#doesn't work
install.packages(pkgs="http://courses.nus.edu.sg/course/psycwlm/internet/metaSEM/metaSEM_0.8-4.tar.gz", 
  repos="http://courses.nus.edu.sg/course/psycwlm/internet/metaSEM", type="source")

#but this works (on my MAC)
install.packages(pkgs="~/Dropbox/Rworkingdirectory/metaSEM_0.8-4.tar.gz", 
  repos=NULL, type="source")

Why?

4
  • 1
    it doesn't look like there's actually a repository at the URL you specified. There is a set of instructions, but it doesn't indicate where you ought to be getting the tarball from.
    – Ben Bolker
    Jun 5, 2014 at 21:05
  • @BenBolker It's at the bottom of the page under: http://courses.nus.edu.sg/course/psycwlm/Internet/metaSEM/#sec-3 Jun 5, 2014 at 21:19
  • I don't see anywhere on that page where it specifies the command you listed above. I see that it says "Download the source package of metaSEM. Run the following command (as Root) inside an R session: install.packages(pkgs="metaSEM_0.8-4.tar.gz", repos=NULL, type="source") -- but I don't see where it tells you where to download the source package ...
    – Ben Bolker
    Jun 5, 2014 at 21:23
  • I'm trying change Mike Cheung's solution (post 3):http://openmx.psyc.virginia.edu/thread/2358 with installing it directly from the web instead of from my computer. Jun 5, 2014 at 21:25

1 Answer 1

0

try

library(devtools)
install_url("http://courses.nus.edu.sg/course/psycwlm/internet/metaSEM/metaSEM_0.8-4.tar.gz")

this doesn't work for me because I haven't installed the dependencies (e.g. OpenMX); you might have to do that part by hand.

4
  • I got the following error: sh: /usr/bin/gnutar: No such file or directory sh: /usr/bin/gnutar: No such file or directory Error in system(cmd, intern = TRUE) : error in running command In addition: Warning message: In untar(src, exdir = target, compressed = "gzip") : ‘/usr/bin/gnutar -xf '/var/folders/j7/wj5lx6b96pjc2j9z34j72_380000gn/T//RtmplksNSG/metaSEM_0.8-4.tar.gz' -C '/var/folders/j7/wj5lx6b96pjc2j9z34j72_380000gn/T//RtmplksNSG/devtools5c56d4b87b2'’ returned error code 127 Jun 5, 2014 at 22:53
  • It looks like Apple removed "/usr/bin/gnutar in OS X 10.9 (Mavericks)." github.com/hadley/devtools/issues/379 Jun 5, 2014 at 23:15
  • did you try the recommended fix there, day-to-day-stuff.blogspot.ca/2013/11/… ?
    – Ben Bolker
    Jun 6, 2014 at 1:39
  • I didn't Erik van Oosten's solution seemed unnecessary. The package installs fine from the downloads folder. Jun 6, 2014 at 14:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.