forsys-sp / patchmax

A spatial selection optimization algorithm in ForSysR
GNU General Public License v3.0
3 stars 0 forks source link

Patchmax build error #1

Closed michelledayusfs closed 2 years ago

michelledayusfs commented 2 years ago
michelledayusfs commented 2 years ago

Do I just have to load those packages? I thought patchmax would do that for me but maybe not?

codyevers commented 2 years ago

Looks like installing the package within R won’t automatically install these dependencies, but if you were to install using “install_github” then those dependencies would be loaded. I think this means that we want people to install the package using the “install_github” rather than building the package from within R.

https://stackoverflow.com/questions/5805049/package-dependencies-when-installing-from-source-in-r

devtools::install_github("myname/mypackage") On Jun 7, 2022, 1:21 PM -0700, Michelle Day @.***>, wrote:

Do I just have to load those packages? I thought patchmax would do that for me but maybe not? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were assigned.Message ID: @.***>

michelledayusfs commented 2 years ago

Okay, something I can test as michelledayosu.

michelledayusfs commented 2 years ago

Also probably good that my computer died and I have to build back up to all the packages again.

codyevers commented 2 years ago

I can confirm that remotes::install_github(“forsys-sp/forsysr”, auth_token=“your token”) is the way that we want people to install the package on you their machine. People will only need to use GitHub Desktop if they want to push and pull from the repository. On Jun 7, 2022, 1:29 PM -0700, Michelle Day @.***>, wrote:

Also probably good that my computer died and I have to build back up to all the packages again. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were assigned.Message ID: @.***>

michelledayusfs commented 2 years ago

This was resolved with the remotes::install_deps("your_filepath_here/Patchmax_0.1.1.zip"). Cody is correct but doesn't work if we are sharing the binary version of patchmax.