Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getPass version correction #9434

Merged
merged 6 commits into from
Feb 11, 2025

Conversation

N-thony
Copy link
Collaborator

@N-thony N-thony commented Feb 10, 2025

@ChrisMarsh82 I have made the correction for the downgrade getPass version to 0.2-2. Have a look.

@N-thony
Copy link
Collaborator Author

N-thony commented Feb 10, 2025

@rdstern @ChrisMarsh82, I made all the files in order for packages installation. This can be merged and I believe the issue with the climsoft will be fixed in the next version

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rsetup checks all packages are installed on startup. getPass wants to be included here even though it installed manually. similar to mmtable

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ChrisMarsh82 this is solved.
But I realized signmedian.test is not in the Rsetup, is it correct?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

install_packages is the list of packages that we need (without dependencies)
Rsetup is created from install_packages and should include all dependencies and versions.
installPackages are all packages installed including dependencies. This is used by the installer to install all the packages. This should also be created from install_packages however due to issues with installing some packages there are manual edits.

It would be worth reviewing all packages in install_packages making sure we only have listed the required packages. Then run this locally and create the packs and version lists for RSetup, update this and installpackages. The awkward bit comes in getting a blank R version to test installpackages before it runs in actions. It may be trial and error to get the actions to install all packages.

rdstern
rdstern previously approved these changes Feb 10, 2025
Copy link
Collaborator

@rdstern rdstern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@N-thony I'm not sure quite how I should be testing this pull request, because af the different way packages are loaded in the VS and released versions.
I tried without loading anything, and it works - at least as far as giving the right input menu.
So I'm approving. Over to you @ChrisMarsh82

@rdstern
Copy link
Collaborator

rdstern commented Feb 10, 2025

After @ChrisMarsh82 message I don't think we need mmtable2 anymore! That's a different issue maybe, but can we soon do a check of what packages we are still using? I would guess we can get rid of quite a few. And there are quite a large number that we load, every time R-Instat starts. I wonder if we need them all, from the beginning?

Copy link
Collaborator

@rdstern rdstern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My only check is that it now gives the popup dialog. I assume @Patowhiz will check, then the test version is made,because MSD will be the first users.

@jkmusyoka
Copy link
Contributor

I get an error message that I do not have the getPass package installed! I assume that the new R-Instat installer will now come with this package?

@Patowhiz
Copy link
Contributor

Would be good to get this correction made. In the meantime @jkmusyoka @rdstern we could evaluate how to connect to the database through a script just incase the package fails again in future. The other alternative that we have is getting raw data from either initial or final through the Climsoft front end. We could then document the steps for QC and products when a user chooses that path.

@rdstern
Copy link
Collaborator

rdstern commented Feb 11, 2025

@Patowhiz I like the idea of a script as a backup - but only that.
The new test version is being produced today by @N-thony specifically to test that this feature is working. So your urgent job is to confirem that. Hopefully both from Initial and Final.
Very happy with the export from Climsoft also being possible. Is there currently an easy way that the current it will export all the data and not simply average or total the values from the duplicate records. Is there an export for the synoptic data that could be used?

@Patowhiz
Copy link
Contributor

@rdstern I'm happy to test. I'm hoping to get a stable version that I can use for ZINWA activities as well.
In regards to exporting raw data. Yes, the administrator can export raw data from either tables. Note, by raw, I mean data in the state that it is in the database. I haven't had the opportunity to test the export performance for big data sets but we are working on improving data export as part of the UNDP project. Exploration of this option could be good for other Met services as well and it will support the web operations.

2

1

@N-thony
Copy link
Collaborator Author

N-thony commented Feb 11, 2025

@rdstern while waiting for @ChrisMarsh82 to merge this, is there another PR you would like in the upcoming version?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

install_packages is the list of packages that we need (without dependencies)
Rsetup is created from install_packages and should include all dependencies and versions.
installPackages are all packages installed including dependencies. This is used by the installer to install all the packages. This should also be created from install_packages however due to issues with installing some packages there are manual edits.

It would be worth reviewing all packages in install_packages making sure we only have listed the required packages. Then run this locally and create the packs and version lists for RSetup, update this and installpackages. The awkward bit comes in getting a blank R version to test installpackages before it runs in actions. It may be trial and error to get the actions to install all packages.

@N-thony N-thony merged commit 5de08ae into IDEMSInternational:master Feb 11, 2025
2 checks passed
@N-thony
Copy link
Collaborator Author

N-thony commented Feb 11, 2025

@rdstern @jkmusyoka, I have created and tested version 0.8.2 now and it works fine now with the import from climsoft.
Can you please download it the one named rinstat64WithR-innosetup and test as well?

Here is the link /~https://github.com/IDEMSInternational/R-Instat/actions/runs/13259765065

image

@rdstern
Copy link
Collaborator

rdstern commented Feb 11, 2025

@Patowhiz and @jkmusyoka please can you download and check
a) It now works from Final and
b) It also works from Initial.

@Patowhiz I assume you have access to a climsoft database with some data in Initial, or you can transfer some data there for the checks?

@Patowhiz
Copy link
Contributor

@N-thony @rdstern I'm not sure on how I can download from the link above. Could you send us a link that directly leads to a download page?

@rdstern
Copy link
Collaborator

rdstern commented Feb 11, 2025

@Patowhiz unusual for me to do something you can't . The option to downlaod is at the bottom of the link above :

@Patowhiz
Copy link
Contributor

Thanks @rdstern for precisely pointing out where the download link is located. I've been able download it.
As shown in the screenshot below, I still get the getPass error.
@N-thony did you test the set up and does it work on your end?
@jkmusyoka do you get the same error as well?

1

@jkmusyoka
Copy link
Contributor

@Patowhiz yes we get the same error. I believe @N-thony is at the moment working to resolve this issue

@N-thony
Copy link
Collaborator Author

N-thony commented Feb 12, 2025

Thanks @rdstern for precisely pointing out where the download link is located. I've been able download it. As shown in the screenshot below, I still get the getPass error. @N-thony did you test the set up and does it work on your end? @jkmusyoka do you get the same error as well?

1

@Patowhiz yes, I realized some packages are not installed automatically because they require rtools pre-installed. I'm still looking at it if really true. Meanwhile, we can rely on R to create the additional folder where we can install the package from Tools menu. The advantage with this, we can install getPass automatically there rather than in the System folder rather than Program Files directory. I already have a branch with the changes, and will discuss with @ChrisMarsh82, if agree we can have another test version. I see, we have packages like DBI for database connection, we will have to test this carefully, to make sure the updated one from R 4.4.1 doesn't have higher restrictions when installed in the system folder.

I realize also that RStudio (and R itself) does not install packages in the Program Files directory because of file permission restrictions and best practices for software management, why are we not doing the same? Am I ignoring something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants