Error in R script with lubridate package

Hello AK,
I have corrected the code as you can see below but I am experiencing some issues :  
Error 0063: The following error occurred during evaluation of R script:
 ---------- Start of error message from R ----------
 'to' cannot be NA, NaN or infinite
 'to' cannot be NA, NaN or infinite
 ----------- End of error message from R ----------
****the code***
## Map 1-based optional input ports to variables
winData1 <- maml.mapInputPort(1) # class: data.frame
install.packages("src/ggplot2_1.0.0.zip", lib = ".", repos = NULL, verbose = TRUE)
install.packages("src/lubridate_1.3.3.zip", lib = ".", repos = NULL, verbose = TRUE)
library(ggplot2, lib.loc=".", verbose=TRUE)
library(lubridate, lib.loc=".", verbose=TRUE)
withCallingHandlers({
    print(dmy_hm("01/01/2002 00:00"))
    print("done")
}, warning=function(w) {
    message("handled warning: ", conditionMessage(w))
    invokeRestart("muffleWarning")
winData1$date_time<-dmy_hm(paste(winData1$DATE, winData1$Time))
ggplot(winData1, aes(date_time, AnemSD40aMS)) + geom_point() + geom_line()
# Select data.frame to be sent to the output Dataset port
maml.mapOutputPort("winData1");
Pls I need your help on this.
Thank you.

I'm not sure what the purpose of your withCallingHandlers() call is, you are not guarding any code that is useful - if it happens, it'll also happen outside and you won't catch it. If it doesn't happen, you don't need it.
There is no need to install.packages() ggplot2, it's preinstalled - just use library(ggplot2)
Can you please post the full output log? it looks like something in your script isn't the size/shape you think it is.
If you str(winData1) in your script before doing the above we can help by looking at the structure
Regards,
AK

Similar Messages

  • Error code 2318 (problem with installation package) HELP

    Ok so I tried to download itunes earlier today, and it went fine until the very end, I got this message...
    ''The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2318''
    So I went through and tried to repair the itunes to no avail. So I removed everything and ran the microsoft installer cleanup utility, then re-installed itunes and quicktime. Again everything went fine until the end, got the same ''2318'' error message. Itunes shows up on my desktop, as does quicktime. When I click itunes I get a pop up window telling me the application must close due to error, would I like to send an error report.
    So I went back and uninstalled everything AGAIN, and now its downloading again. I'm getting kidn of peeved... can anyone help me?

    ok I got it. Had to end up doing a small overhaul on the computer to remove the corrupted ''sample.mov'' file out of the quicktime folder, but its working now.

  • Error in User Mapping with SR1 Package

    Hi
    I have installed the SR1 Package for Web AS and EP.
    While trying to achieve User Mapping the following error is being displayed
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : pcd:portal_content/administrator/super_admin/super_admin_role/com.sap.portal.user_administration/com.sap.portal.user_mapping/com.sap.portal.userMappingAdmin/com.sap.portal.userMappingAdmin
    Component Name : com.sap.portal.usermanagement.admin.UserMappingAdmin
    User Mapping not fully available..
    Exception id: 02:08_12/07/05_0005_4483250
    Has anyone come across with this problem?
    Also the 'Personalize' link on the Portal is not working.
    I have come across the same problem on two machines in which the SR1 package has been installed.
    Please respond if there is a solution.
    Thanks in advance.
    Regards
    Priya

    Hi Priya,
    I'm glad to hear that you have solved your problem on your own, but not so glad to see that you did not check the mentioned links! ;-(
    If you would have, then you would have seen that you've done exactly what I mentioned in that thread. But more important, that this is the easiest way to solve the problem but not at all the safest and therefor NOT RECOMMENDED by SAP. I would also rather suggest to solve this problem by installing and using the unlimited strength jurisdiction policy files from Sun Microsystems, Inc.
    Maybe you take your time and read the Note and the mentioned links so that you're informed about the security risks.
    Regards,
    Robert

  • Rhino scripting with nonstandard packages

    How can I get the JavaScript engine to recognize arbitrary package qualifiers? By default, it seems to reject calls against Java objects that are not in the 'com' package.
    Test.java:
    import javax.script.ScriptEngine;
    import javax.script.ScriptEngineManager;
    import javax.script.ScriptException;
    public class Test {
      public static void main(String[] pArgs) {
        String s1 = com.Test.m();
        String s2 = xom.Test.m();
        ScriptEngine engine = (new ScriptEngineManager()).getEngineByName(
          "JavaScript"
        try {
          engine.eval("com.Test.m();");
        } catch (ScriptException ex) {
          ex.printStackTrace();
        try {
    //    engine.eval("importPackage(Packages.xom);");
          engine.eval("xom.Test.m();");
        } catch (ScriptException ex) {
          ex.printStackTrace();
    }com/Test.java:
    package com;
    public class Test {
      public static String m() {return "a";}
    }xom/Test.java:
    package xom;
    public class Test {
      public static String m() {return "a";}
    }I keep getting script exceptions: javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "xom" is not defined. (<Unknown source>#1) in <Unknown source> at line number 1.

    jschell wrote:
    hwaite wrote:
    By default, it seems to reject calls against Java objects that are not in the 'com' package.Oddly enough, at least to me, that seems to be true. See the following thread where this is discussed -start at reply #11
    [http://forums.sun.com/thread.jspa?threadID=5413346]
    Doesn't that just mean you always have to add the "Packages" prefix when you use a package that doesn't start with one of the special TLDs? Not just in the importPackage method, but every time you refer to the package:   engine.eval("Packages.xom.Test.m();");

  • Smo.Server.ExecuteNonQuery throw an error executing a script with IF statement

    I am trying to executed this script (see below) using Smo libraries with powershell (this script works in SSMS)
    use master;
    GO
    use master;
    if (not exists(select * from sys.databases where name = 'dbname'))
        alter database [dbname] set offline with rollback immediate;
    GO
    however, I always got an
    Exception calling "ExecuteNonQuery" with "1" argument(s): "An exception occurred while executing a Transact-SQL statement or batch."
    if I delete the if statement, the script execute without erros... is there any problem to use if statements?  I would really appreciate any help
    regards.!

    Olaf
    Helper answer does make sense and you won't be able to modify database which doesn't exists. However, your syntax's are correct.
    However, if you are executing it via Powershell as mentioned by HoroChan then
    I recommend you to increase the statementTimeout to appropriate value. 
    There may be chances that alerting database got hanged and exceeded the timeout.  So instead of IMMEDIATE ROLLBACK you can use
    WITH NO WAIT
    From MSDN:
    Specifies that if the requested database state or option change cannot complete immediately without waiting for transactions to commit or roll back on their own, the request will fail.
    So your overall code will look like 
    USE MASTER;
    IF EXISTS(select * from sys.databases where name = 'dbname')
    ALTER DATABASE [dbname] SET OFFLINE WITH NO_WAIT
    GO
    Hope this will help.

  • Compilation error in jsp script with weblogic 9.1 server

    Hi All,
              i am using weblogic 9.1 compiler to compile my jsp code.
              it gives me compilation error.
              The root cause of the error is %% which comes in the code.
              for e.g take this code:-
              <%
              System.out.println("%%abc");
              %>
              this code will give error while error.
              here it is identifing %% as termination tag!
              same code works in tomcat & weblogic 8.1
              can anyone give any information in this regard.
              Reagrds
              Rahul

    I am also getting the same error. If you have solved this issue please share the solution.
              Thanks,
              Dikshit

  • An error occurred while running scripts from the package "ztb343812063996219254.pkg

    i tried to upgrade my os lion 10.7.5 to os x yosemite on my macbook pro and in the middele of downloading I'm getting this notice: an error occurred while running scripts from the package "ztb343812063996219254.pkg
    help me please…..
    i think i have problem with the app store cause sometimes I'm getting more errors like error no 13 or 100
    what should i do?

  • "error while evaluating Java script for the package"

    Okay, this is a new one on me! Anyone ever get this message? I don't know what is going on with my iMac, all I know is that about a month ago my iTunes was working fine, and when I just went to use it, it tells me "you can not use the application iTunes with this version of Mac OS X. So I thought maybe something was wrong with my iTunes and downloaded it again and i got the "error while evaluating Java script for the package" when I tried to reinstall iTunes. Another issue I am having is with updates. I haven't received an update for a long time and when I manually check, it tells me there are none.

    Okay, this is a new one on me! Anyone ever get this message? I don't know what is going on with my iMac, all I know is that about a month ago my iTunes was working fine, and when I just went to use it, it tells me "you can not use the application iTunes with this version of Mac OS X. So I thought maybe something was wrong with my iTunes and downloaded it again and i got the "error while evaluating Java script for the package" when I tried to reinstall iTunes. Another issue I am having is with updates. I haven't received an update for a long time and when I manually check, it tells me there are none.

  • An error occurred while running scripts from the package "mzm,stuhjljp.pkg".

    I hope someone can help, I have now tried downloading Lion OSx 4 times and I keep getting this message: An error occurred while running scripts from the package "mzm,stuhjljp.pkg".
    I go back to the app store and it kindly tells me it's installed. It's not quite simply it is nowhere to be found.
    Nice one Apple for moving away from those reliable discs and causing pain, wasted productivity and a **** of a lot of frustration. $29.99 to annnoy the **** out of me, thanks.
    Anyone have a solution that may be of assistance.

    Mj, I can't offer much help but you may be able to use this method to "find" Lion OS X in the App Store again.
    Hold down the "option" key while clicking on the App Store icon.  Keep holding down the option key, then click on the "Purchased" tab at the top of the page. 
    With any luck the button to the right of Lion OS X will now say "install."
    I'm having a similar problem reinstalling Lion, so don't be surprised if you try to reinstall and get the same error.
    Good luck,
    Contender

  • When I first load Firefox, it comes up with an error message about "script". Can you help me?

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/846741]]</blockquote>
    I just double click on the Icon, and it seems it takes forever to load.
    After this action, an error message comes up with a statement that it is trying to read some sort of script. Next it tells me to press continue to go ahead. At this time, it loads up normally. Can you help?

    This issue can be caused by an extension that isn't working properly.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • HT1222 hi i have a apple imac 27 2009 and i have purchased mountain lion but near the end it says An error occurred while running scripts from the package "mzps6175750011235388779.pkg"

    hi i have a apple imac 27 2009 and i have purchased mountain lion but near the end it says An error occurred while running scripts from the package “mzps6175750011235388779.pkg”
    can you please advise me what should i do to fix this

    Some ideas.
    https://discussions.apple.com/message/20034600#20034600

  • Unable to update itunes. help. error message when trying to update to latest version of itunes. "the installer has encountered an unexpected error installing this package. this may indicate a problem with this package. error code 2721"

    unable to update itunes. help. error message when trying to update to latest version of itunes. "the installer has encountered an unexpected error installing this package. this may indicate a problem with this package. error code 2721"

    Hello chae84swangin,
    I recommend following the steps in the article below when getting an error message trying to install iTunes:
    Trouble installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/HT1926
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Tried to install iTunes 10.5 this morning but an error appeared saying "problem with windows installer package. A program required for this install to complete could not be run." Can someone please help

    I tried to install iTunes 10.5 this morning but an error appeared saying "problem with windows installer package. A program required for this install to complete could not be run." Can someone please help

    Firstly, are you installing iTunes for the first time or are you updating your current version of iTunes?
    If you're installing iTunes for the first time have you tried redownloading the installer package? Perhaps the file you downloaded originally is corrupted...
    http://www.apple.com/itunes/
    If you've tried that, then try installing iTunes as your computer's administrator. To do this right-click the install package and choose "Run as administrator".
    If you're updating iTunes to the most recent version try repairing the Apple Software Update program on your computer. It's under the add/remove programs.
    1. Open the control panel
    2. Open Add/Remove programs (called "Programs and Features" in Windows 7)
    3. Navigate to "Apple Software Update" in the list and click on it
    4. Click on "Change" then select "Repair" (or just select the repair option in Windows 7)
    Once you repair this, try running iTunes and the update again.
    Fingers crossed!

  • Error with the Package Request while uploading epub package onto ACS4.

    Hi,
    Error with the Package Request while uploading epub package onto ACS4.
    There was an error with the Package Request::<error xmlns="http://ns.adobe.com/adept" data="E_PACK_DATABASE http://localhost/packaging/Package Incorrect%20string%20value:%20'\x92Apran...'%20for%20column%20'creato r'%20at%20row%201"/>
    Cheers
    Vikas

    See http://forums.adobe.com/thread/771689?tstart=0

  • Problems downloading and installing OS X Yosemite An error occurred while running scripts from the package

    Hi! I have problems downloading and installing OS X Yosemite.
    While downloading this message pops up:
    An error occurred while running scripts from the package \U201cwct8079783343594854923.pkg\U201d.
    and in /var/log/install.log i can see:
    MacBook-Pro installd[1086]: PackageKit: Install Failed: PKG: pre-install scripts for "com.apple.pkg.InstallMacOSX"\nError Domain=PKInstallErrorDomain Code=112 UserInfo=0x100193c00 "An error occurred while running scripts from the package “wct8079783343594854923.pkg”." {\n    NSFilePath = preinstall;\n    NSLocalizedDescription = "An error occurred while running scripts from the package \U201cwct8079783343594854923.pkg\U201d.";\n    NSURL = "#InstallMacOSX.pkg -- file://localhost/Users/username/Library/Application%20Support/AppStore/91504108 2/wct8079783343594854923.pkg#Distribution";\n    PKInstallPackageIdentifier = "com.apple.pkg.InstallMacOSX";\n}
    does anyone have an idea about this?
    thank you very much

    Mucked up installation. If the installer app is still in /Applications, delete it and start over.
    27" i7 iMac (Mid 2011) refurb, OS X Yo (10.10.2), Mavs, ML & SL, G4 450 MP w/10.5 & 9.2.2

Maybe you are looking for