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

Error with k.read #142

Closed
RFlazcano opened this issue Apr 21, 2021 · 1 comment
Closed

Error with k.read #142

RFlazcano opened this issue Apr 21, 2021 · 1 comment

Comments

@RFlazcano
Copy link

RFlazcano commented Apr 21, 2021

Hi,
I am having a problem when I run: k600_read = k.read(ts.data, wnd.z=wnd.z, Kd=kd, atm.press=atm.press, lat=lat, lake.area=lake.area)

and get the error: Error in k.read.base(wnd.z, Kd, lat, lake.area, atm.press, data$datetime, :
'list' object cannot be coerced to type 'double'

I also tried to fix the issue by using devtools::install_github('GLEON/LakeMetabolizer') as is suggested in a previous issue #129 someone posted but got the following error message: Error: Failed to install 'LakeMetabolizer' from GitHub:
(converted from warning) installation of package ‘C:/Users/USER1~1/AppData/Local/Temp/RtmpgZ76DZ/file1c2c5e6366fa/LakeMetabolizer_1.5.3.tar.gz’ had non-zero exit status

I have been following the code in the demo folder
This is also happening with k.read.soloviev and k.macIntyre

@hdugan
Copy link
Contributor

hdugan commented Apr 22, 2021

Yes, this error has been fixed in the functions that are currently available on GitHub.

The error you're getting trying to install from GitHub seems like a Windows error, and you might want to try searching for ways to solve the installation problem (maybe it's fixed with a newer R version?). There seem to be ways to turn off errors... Alternatively, you could download the .zip file and install locally, or clone the GitHub repo and load all the functions.

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

No branches or pull requests

2 participants