rich-iannone / splitr

Use the HYSPLIT model from inside R and do more with it
Other
141 stars 60 forks source link

Installation Troubles #73

Open madeighan opened 2 years ago

madeighan commented 2 years ago

Greetings. Please forgive me. I'm new to this package and have only recently started working with R again after a few years. I'm trying to install splitr in order to participate in an internal user's group.

My issue is that I am hitting a wall right off the bat just trying to install this package. I've tried following the recommended download instructions; results below.

> devtools::install_github("rich-iannone/splitr")
Error: Failed to install 'unknown package' from GitHub:
  schannel: next InitializeSecurityContext failed: SEC_E_INVALID_TOKEN (0x80090308) - The token supplied to the function is invalid

Either I could not find a solution to the above, or I did not sufficiently understand the solutions that were already provided online. Attempting a workaround, I tried downloading the package as a .zip file and installing it manually; results below.

> install.packages("C:/Users/.../Downloads/R_packages/splitr-main.zip",
+                  lib="C:/Users/.../R/win-library/4.0",
+                  repos = NULL
+                  )
> library(splitr-main)
Error in library(splitr - main) : 'package' must be of length 1

So, to my naive mind, the above script tells me that install.packages() succeeded, since there was no error. However, I do encounter an error when attempting to load the package with library(). Again, I do not understand what this error means and I have not found an explanation that I understand. I did find a help topic that recommended the character.only flag to deal with the above issue, but it seems as though my problem runs deeper.

> library(splitr-main, character.only = TRUE)
Error in library(splitr - main, character.only = TRUE) : 
  object 'splitr' not found

So was the package ever really installed? Looking back at my first attempt where install_github() failed to install "unknown package" gives me pause. But I have stopped making forward progress at this point. I've tried adjusting my library path. I've also tried manually deleting the package from my library directory and reinstalling.

Any help would be appreciated. Sorry for my ignorance. Thanks in advance.

jessicakromer commented 1 year ago

Hi! I am having the same trouble and am wondering if you ever found a solution for installing this? Thank you!

madeighan commented 1 year ago

Hello. Yes, two possible solutions for you. The first is that it is possible to use install.packages() and get satisfactory results. I think I was not using it correctly before. I think I needed to extract the zip file and then install. I do not have my notes beside me, so I can't speak to the details.

The second is that my organization's firewall was blocking all downloads from github. Installing the package on my personal computer and then copying it over to the library on my work desktop worked just fine.

On Tue, Jan 17, 2023 at 4:25 PM jessicakromer @.***> wrote:

Hi! I am having the same trouble and am wondering if you ever found a solution for installing this? Thank you!

— Reply to this email directly, view it on GitHub https://github.com/rich-iannone/splitr/issues/73#issuecomment-1386071035, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABVIHKX5USOE7GPG2L6LAGTWS4E4VANCNFSM5WFGCU5Q . You are receiving this because you authored the thread.Message ID: @.***>

jessicakromer commented 1 year ago

Thank you so much for getting back to me and helping me out! I downloaded the zip file as you said and tried to install it that way, however I get a different error message now.

install.packages("~/Downloads/splitr-main/SplitR.Rproj", repos = NULL, type="source") Error in untar2(tarfile, files, list, exdir, restore_times) : incomplete block on file Warning in install.packages : installation of package ‘/Downloads/splitr-main/SplitR.Rproj’ had non-zero exit status

When I looked this up online others are saying the package is incomplete and cannot be installed. Other posts says it is incompatible with the version of R that I have (4.2.2), but I have installed earlier versions (3.3.3) from when the package was released and still no luck.

Thank you for all of your help!

On Tue, Jan 17, 2023 at 4:48 PM madeighan @.***> wrote:

Hello. Yes, two possible solutions for you. The first is that it is possible to use install.packages() and get satisfactory results. I think I was not using it correctly before. I think I needed to extract the zip file and then install. I do not have my notes beside me, so I can't speak to the details.

The second is that my organization's firewall was blocking all downloads from github. Installing the package on my personal computer and then copying it over to the library on my work desktop worked just fine.

On Tue, Jan 17, 2023 at 4:25 PM jessicakromer @.***> wrote:

Hi! I am having the same trouble and am wondering if you ever found a solution for installing this? Thank you!

— Reply to this email directly, view it on GitHub < https://github.com/rich-iannone/splitr/issues/73#issuecomment-1386071035>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABVIHKX5USOE7GPG2L6LAGTWS4E4VANCNFSM5WFGCU5Q

. You are receiving this because you authored the thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/rich-iannone/splitr/issues/73#issuecomment-1386108583, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVIK2CWDZYFSTMP65VAYFU3WS4HTXANCNFSM5WFGCU5Q . You are receiving this because you commented.Message ID: @.***>

madeighan commented 1 year ago

Hello again. So I had a chance to check my notes on this. To install a package locally you can use devtools::install("path/to/extracted/file") on the extracted zip file that you have saved to your hard drive. You may be prompted to update additional packages. Update at your own discretion, although I do usually update packages and/or install dependencies. If individual packages have a non-zero exit status, try installing those by themselves, then reinstalling splitr. Hope this helps!

On Wed, Jan 18, 2023 at 12:08 PM jessicakromer @.***> wrote:

Thank you so much for getting back to me and helping me out! I downloaded the zip file as you said and tried to install it that way, however I get a different error message now.

install.packages("~/Downloads/splitr-main/SplitR.Rproj", repos = NULL, type="source") Error in untar2(tarfile, files, list, exdir, restore_times) : incomplete block on file Warning in install.packages : installation of package ‘/Downloads/splitr-main/SplitR.Rproj’ had non-zero exit status

When I looked this up online others are saying the package is incomplete and cannot be installed. Other posts says it is incompatible with the version of R that I have (4.2.2), but I have installed earlier versions (3.3.3) from when the package was released and still no luck.

Thank you for all of your help!

On Tue, Jan 17, 2023 at 4:48 PM madeighan @.***> wrote:

Hello. Yes, two possible solutions for you. The first is that it is possible to use install.packages() and get satisfactory results. I think I was not using it correctly before. I think I needed to extract the zip file and then install. I do not have my notes beside me, so I can't speak to the details.

The second is that my organization's firewall was blocking all downloads from github. Installing the package on my personal computer and then copying it over to the library on my work desktop worked just fine.

On Tue, Jan 17, 2023 at 4:25 PM jessicakromer @.***> wrote:

Hi! I am having the same trouble and am wondering if you ever found a solution for installing this? Thank you!

— Reply to this email directly, view it on GitHub < https://github.com/rich-iannone/splitr/issues/73#issuecomment-1386071035 , or unsubscribe <

https://github.com/notifications/unsubscribe-auth/ABVIHKX5USOE7GPG2L6LAGTWS4E4VANCNFSM5WFGCU5Q

. You are receiving this because you authored the thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub < https://github.com/rich-iannone/splitr/issues/73#issuecomment-1386108583>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AVIK2CWDZYFSTMP65VAYFU3WS4HTXANCNFSM5WFGCU5Q

. You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/rich-iannone/splitr/issues/73#issuecomment-1387425289, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABVIHKWNHN2JOTE5ODKNGJTWTAPPTANCNFSM5WFGCU5Q . You are receiving this because you authored the thread.Message ID: @.***>