Skip to content

"# install.packages" ?  #14

@LorenAmelang

Description

@LorenAmelang
Installation
You can install the development version from [GitHub](https://github.com/) with:
# install.packages("devtools")

Yes, I'm ignorant about R, and I've jumped into the thick of it as I often do. To me, the '#' before that command means it needs to be entered at the Linux prompt with sudo... Does it mean something else to R fans? I don't see it in other instructions...

Quickly learned that didn't work. But I got confusing messages entering the command in R as well. Turns out devtools is not installed with R, and after hours of trying to install it showed:

ERROR: dependencies ‘usethis’, ‘httr’, ‘rcmdcheck’, ‘roxygen2’, ‘rversions’ are not available for package ‘devtools’
* removing ‘/home/pi/R/arm-unknown-linux-gnueabihf-library/4.0/devtools’
There were 12 warnings (use warnings() to see them)

I then found the remotes package, which installed relatively quickly and downloaded webmorphR, but it choked compiling Rcpp. Maybe we just can't do this on a Raspberry Pi?

(I love learning new things...)

Hmmm... Still building webmorphR, and getting lots of reports like:

/usr/include/c++/10/bits/vector.tcc:426:7: note: parameter passing for argument of type ‘std::vector<Catch::SectionEndInfo>::iterator’ changed in GCC 7.1
  426 |       vector<_Tp, _Alloc>::
      |       ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/10/vector:67,
                 from testthat/vendor/catch.h:671,
                 from testthat/testthat.h:65,
                 from test-runner.cpp:8:

Do those mean this isn't going to work even if it does eventually finish? Does it require some specific version of GCC that isn't automatically selected?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions