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

Cannot convert object to an environment: [type=character; target=ENVSXP] #2

Open
Zhangjs16 opened this issue Aug 27, 2021 · 1 comment
Assignees

Comments

@Zhangjs16
Copy link

NULL
[,1]
[1,] "(118.125, -16.125)"
Error in .sc_cpp_construct_rss_table(y, X, n, h, breaks, intercept_only, :
Cannot convert object to an environment: [type=character; target=ENVSXP].
Error in .sc_cpp_construct_rss_table(y, X, n, h, breaks, intercept_only, :
Cannot convert object to an environment: [type=character; target=ENVSXP].
此外: Warning message:
In cor.test.default(ti, obsVI, method = "spearman") :
Cannot compute exact p-value with ties
Error in .sc_cpp_construct_rss_table(y, X, n, h, breaks, intercept_only, :
Cannot convert object to an environment: [type=character; target=ENVSXP].
Error in .sc_cpp_construct_rss_table(y, X, n, h, breaks, intercept_only, :
Cannot convert object to an environment: [type=character; target=ENVSXP].
Error in .sc_cpp_construct_rss_table(y, X, n, h, breaks, intercept_only, :
Cannot convert object to an environment: [type=character; target=ENVSXP].
Error in .sc_cpp_construct_rss_table(y, X, n, h, breaks, intercept_only, :
Cannot convert object to an environment: [type=character; target=ENVSXP].
Error in .sc_cpp_construct_rss_table(y, X, n, h, breaks, intercept_only, :
Cannot convert object to an environment: [type=character; target=ENVSXP].
此外: Warning messages:
1: In cor.test.default(ti, obsVI, method = "spearman") :
Cannot compute exact p-value with ties
2: In cor.test.default(ti, CO2change, method = "spearman") :
Cannot compute exact p-value with ties
3: In AnnualClim.Cal(anu.VI, VI.index, ACP.table, ACT.table = ACT.table, :
Insufficent positve slopes exist. Returing most significant negative slope
Error in { : task 2 failed - "不能给没有维度的对象设'rownames'"
Calls: system.time -> %do% ->
Timing stopped at: 47.31 0.084 47.4

@ArdenB ArdenB self-assigned this Nov 26, 2021
@ArdenB
Copy link
Owner

ArdenB commented Nov 26, 2021

it seems to be a conflict with the new version of BFAST which has been rewritten in C++. Because of this its not a very fast fix for me, I will have to do quite a bit of work and it's going to take some time.  In the meantime, there are two work-arounds, the first is to actually import the bfast library into your script.  The published version of TSS-RESTREND only imports a single function from bfast. For some reason when I do that now it fails in the C++ park (Which is why the R error handling in TSS-RESTREND doesn't work).  However, if you add library(bfast) into your R script the problem goes away. The other solution is to reinstall bfast and specify a version < 1.6.0. I will have a better fix in the next couple of weeks. 

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